Is there “DisplayMember” and “ValueMember” like Properties for CheckedListBox control? C# winforms?

Well yes, there are DisplayMember and ValueMember properties on CheckedListBox although the docs for ValueMember claim it's "not relevant to this class.

Well yes, there are DisplayMember and ValueMember properties on CheckedListBox, although the docs for ValueMember claim it's "not relevant to this class". Here's a quick example showing DisplayMember working: using System; using System. Drawing; using System.Windows.

Forms; class Test { static void Main() { CheckedListBox clb = new CheckedListBox { DisplayMember = "Foo", ValueMember = "Bar", Items = { new { Foo = " Bar = 10 }, new { Foo = "There", Bar = 20 } } }; Form f = new Form { Controls = { clb } }; Application. Run(f); } } Also note that the docs state: 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. Given the above code which works, presumably it's talking about more advanced data binding, using DataSource?

Ok sir I'll check. – yonan2236 Sep 27 '10 at 5:26 I did not see any sir for DisplayMember and ValueMember properties on CheckedListBox. – yonan2236 Sep 27 '10 at 5:26 @yonan2236: Well they're there... IntelliSense or the designer may not suggest them, but they exist.

– Jon Skeet 6 Sep7 at 5:30 thank you very much sir. (Mr. Jon Skeet answered my question, I feel very lucky today. ) – yonan2236 Sep 27 '10 at 5:33 it's working sir Jon, I will try to use other DataSource.

Thanks again :) – yonan2236 Sep 27 '10 at 5:44.

The DataSource, DisplayMember and ValueMember properties are available for this control but they are not displayed in the IntelliSense: MSDN You should be able to use them though.

Ok sir thank you. I will try. – yonan2236 Sep 27 '10 at 5:31.

I cant really gove you an answer,but what I can give you is a way to a solution, that is you have to find the anglde that you relate to or peaks your interest. A good paper is one that people get drawn into because it reaches them ln some way.As for me WW11 to me, I think of the holocaust and the effect it had on the survivors, their families and those who stood by and did nothing until it was too late.

Related Questions