Hi i am using a checked list box control.I have to display Name to the user and store the id of the selected item to the database(like display and value member of combobox).
Is there any way to do this in checked list box. I am not finding display and value member property for the control.
Thanks in advance.

Blocked AccountRank #403 · 6.2K reputationPosted May 13, 2008, 2:37 AM EDT
Hi,
U can set this property by using this
<asp:CheckBoxList ID="CheckBoxList1" runat="server"> <asp:ListItem Value="" Text="">asp:ListItem> asp:CheckBoxList>and if u want to bind this through the data source. then u can do this by defining the datatextfield and datavaluefield.
Happy Coding!!
Simi J27 reputationPosted May 13, 2008, 4:23 AM EDT
Thanks for the reply.
I am using windows forms control. and not asp control. How can we write this code there?
Could you please tell me how we could bind it to data source?
Imran4 reputationPosted Aug 25, 2008, 8:58 PM EDT
http://raja-blogistani.blogspot.com/
See the article Checked List Box