System.Windows.Forms.BindingSource.DataMember Property

Gets or sets the specific list in the data source to which the connector currently binds to.

Syntax

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

Value

Documentation for this section has not yet been entered.

Remarks

If the BindingSource.DataSource contains multiple lists (or tables) of data, you should set the BindingSource.DataMember property to the name of one of the sources.

Setting this property raises the BindingSource.DataMemberChanged event

Requirements

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