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
Hi
These links might help
http://dropdowncheckboxes.codeplex.com/
http://www.codeproject.com/Tips/622368/Poor-Mans-CheckBoxList-using-a-DropDownList-for-AS
http://dropdown-check-list.googlecode.com/svn/trunk/doc/dropdownchecklist.html
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
沒有留言:
張貼留言