CheckedListBox::ValueMember Property
.NET Framework (current version)
Gets or sets a string that specifies the property of the data source from which to draw the value.
Assembly: System.Windows.Forms (in System.Windows.Forms.dll)
public: [BrowsableAttribute(false)] property String^ ValueMember { String^ get(); void set(String^ value); }
Property Value
Type: System::String^A string that specifies the property of the data source from which to draw the value.
| Exception | Condition |
|---|---|
| ArgumentException | The specified property cannot be found on the object specified by the DataSource property. |
Specify the contents of the ValueMember property in cases where you bind data.
You can clear the ValueMember property by setting the property to an empty string ("") or null.
Setting a new ValueMember property raises the ValueMemberChanged and SelectedValueChanged events.
.NET Framework
Available since 1.1
Available since 1.1
Show: