System.Windows.Forms.ListControl.ValueMember Property

Gets or sets the path of the property to use as the actual value for the items in the System.Windows.Forms.ListControl.

Syntax

[System.ComponentModel.Editor("System.Windows.Forms.Design.DataMemberFieldEditor, System.Design, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a", typeof(System.Drawing.Design.UITypeEditor))]
[System.ComponentModel.DefaultValue("")]
public string ValueMember { set; get; }

Value

Documentation for this section has not yet been entered.

Remarks

Specify the contents of the ListControl.ValueMember property in cases where you bind data.

You can clear the ListControl.ValueMember property by setting the property to an empty string ("") or null.

Setting a new ListControl.ValueMember property raises the ListControl.ValueMemberChanged and ListControl.SelectedValueChanged events.

Requirements

Namespace: System.Windows.Forms
Assembly: System.Windows.Forms (in System.Windows.Forms.dll)
Assembly Versions: 1.0.5000.0, 2.0.0.0