Click here to Skip to main content
15,921,716 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
Hai good evening. i am working as a s/w developer.i am new for windows application.what my problem is i don't know how to bind the data to chicked list box control in windows forms application. can you plz guide to me,how can i do this....
Posted

1 solution

which kind of data you need to bind SQL or object ?
for object it can be done as follows

List<string> color = new List<string>();
color.Add("red");
color.Add("red1");
color.Add("red2");
foreach (string s in color)
{
mychkList.Items.Add(s);
}

If you have SQL database then get the content in LIST object first and then bind it to the checkedlistbox control
 
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