2014年7月13日 星期日

[RESOLVED] DropDown CheckBox List


Dear Experts,


I am having a DropDownCheckBoxes in a webform.When I bind some Data to the DropDownCheckBoxes it Gets binded to the control.But the text of the item is not added.Only the the checkbox list is visible.I cant able to get the corresponding Item Text and Value.Please
Help me to solve this issue


The following is the sample of the code I am using ,


DropDownCheckBoxes1.DataSource = GetIdsAndNames("City");

DropDownCheckBoxes1.DataTextField = "CityName";

DropDownCheckBoxes1.DataValueField = "CityID";

DropDownCheckBoxes1.DataBind();



And the Script is








Dear Sekhar,


                  Thank You for your kind help.I solved the issue.The problem was with the Text font.Now after binding the data to the DropDownListCheckBoxes I specified the color to be Black.Now I can able to visualize the text of ListItem.Thank you again


沒有留言:

張貼留言