DataMember Property
See Also 
Xceed.Grid Assembly > Xceed.Grid Namespace > GridControl Class : DataMember Property


Gets or sets a specific table in the data source.

Syntax

Visual Basic (Declaration) 
<CategoryAttribute("Data")>
<DefaultValueAttribute()>
<EditorAttribute(EditorBaseTypeName="System.Drawing.Design.UITypeEditor, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a", EditorTypeName="System.Windows.Forms.Design.DataMemberListEditor, System.Design, Version=1.0.5000.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a")>
<DescriptionAttribute("The specific table in the data source.")>
Public Property DataMember As String
Visual Basic (Usage)Copy Code
Dim instance As GridControl
Dim value As String
 
instance.DataMember = value
 
value = instance.DataMember
C# 
[CategoryAttribute("Data")]
[DefaultValueAttribute()]
[EditorAttribute(EditorBaseTypeName="System.Drawing.Design.UITypeEditor, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a", EditorTypeName="System.Windows.Forms.Design.DataMemberListEditor, System.Design, Version=1.0.5000.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a")]
[DescriptionAttribute("The specific table in the data source.")]
public string DataMember {get; set;}

Property Value

A string that specifies the table to bind to within the object returned by the DataSource property.

Requirements

Target Platforms: Windows 2000, Windows XP SP3 Family, Windows Server 2003-2008 Family, Windows Vista, Windows 7

See Also