Click here to Skip to main content
15,893,668 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
how to dynamically bind check box list in dropdown list in dot net
Posted
Comments
Bhushan@88 5-Sep-13 1:21am    
jst bind datasource to your check box list,

checkboxlist.DataSource = Ds;
checkboxlist.DataTextField = "TextField";
checkboxlist.DataValueField = "ValueField";
OR
insert
checkboxlist.Items.Insert(1, new ListItem("TextField", "ValueField"));

You can not do it very easily using server side controls CheckboxList and Dropdown list.

As per your question I can guess that you want multi selection dropdown list. For that you can use JQuery dropdown or create your own custom control for the dropdown.

Below links will be helpful for you :

MultiSelect Dropdown Control[^]

Html drop down list with multi select option[^]


Best of luck :)
 
Share this answer
 
v2
 
Share this answer
 
 
Share this answer
 

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900