Rediger

Del via


CheckedListBox.ValueMember Property

Definition

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

public:
 property System::String ^ ValueMember { System::String ^ get(); void set(System::String ^ value); };
[System.ComponentModel.Browsable(false)]
public string ValueMember { get; set; }
[<System.ComponentModel.Browsable(false)>]
member this.ValueMember : string with get, set
Public Property ValueMember As String

Property Value

A string that specifies the property of the data source from which to draw the value.

Attributes

Exceptions

The specified property cannot be found on the object specified by the DataSource property.

Remarks

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.

Applies to