views:

272

answers:

2

What should I use instead? I've tried DataBindings.Add , but my data were not loaded I have data structure with 3 properties: ID, Name and e.g. Description. I want to load the whole data to the list, but to show only Name property. Usually I use DisplayMember for this purpose, but I here I couldn't find it.

+1  A: 

It's called DisplayMember. MSDN link.

Jacob Seleznev
Sorry, I was talking about DisplayMember, usually such controls have it, but in my case I have only DataBindigns and DisplayRectangle
Ivri
http://msdn.microsoft.com/en-us/library/system.windows.forms.checkedlistbox.displaymember.aspx
Jacob Seleznev
A: 

Also from MSDN

Note: You cannot bind data to a CheckedListBox. Use a ComboBox or a ListBox for this instead. For more information, see How to: Bind a Windows Forms ComboBox or ListBox Control to Data.

Jacob Seleznev