Click here to Skip to main content
15,892,965 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
Hello Experts,

I want to display a checked drop down list in a windows forms application where user can select multiple items. I want to display the Checked dropdown listlike below

1 AA
2 BB
3 CC
...

Now My Checked dropdown list has a class number and name. I want to display both. Would that be possible with checked drop down list control. For now it either displays Number or Name. But I want to display both . I am stuck in lack of idea. Could someone help me in explaining what control would be best for this req.?
Posted
Updated 13-Apr-15 5:26am
v2

1 solution

This is what I did. To get the desired output for Checked drop down list in Windows Forms

VB
For i As Int16 = 0 To dsclass.Tables(0).Rows.Count
     chkClasslist.Items.Add(dsclass.Tables(0).Rows(i)(0).ToString().Trim() + " " + dsclass.Tables(0).Rows(i)(1).ToString().Trim())
   Next
 
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