CheckedListBox.ValueMember Property

 

Gets or sets a string that specifies the property of the data source from which to draw the value.

Namespace:   System.Windows.Forms
Assembly:  System.Windows.Forms (in System.Windows.Forms.dll)

<BrowsableAttribute(False)>
Public Property ValueMember As String

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
Return to top
Show: