G
Guest
I want to databind checklistBox to the binding source on my form. DataSource
and DisplayMember and ValueMember are not available in the designer property
window, and the dont show up in Intellisense.
According to msdn documentation:
This property supports the .NET Framework infrastructure and is not intended
to be used directly from your code.
Gets or sets the data source for the control. This property is not relevant
for this class.
http://msdn2.microsoft.com/en-us/library/system.windows.forms.checkedlistbox.datasource.aspx
However the code below compilies and works:
checkedListBox1.DisplayMember = "name";
checkedListBox1.ValueMember = "id";
Why?
and DisplayMember and ValueMember are not available in the designer property
window, and the dont show up in Intellisense.
According to msdn documentation:
This property supports the .NET Framework infrastructure and is not intended
to be used directly from your code.
Gets or sets the data source for the control. This property is not relevant
for this class.
http://msdn2.microsoft.com/en-us/library/system.windows.forms.checkedlistbox.datasource.aspx
However the code below compilies and works:
checkedListBox1.DisplayMember = "name";
checkedListBox1.ValueMember = "id";
Why?