FlexGrid for WinForms
DataMember Property



Gets or sets the specific list in a DataSource object that the grid should display.
Syntax
'Declaration
 
<C1DescriptionAttribute("Gets or sets the specific list in a DataSource object that the grid should display.")>
<C1CategoryAttribute("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")>
Public Property DataMember As String
'Usage
 
Dim instance As C1FlexGridBase
Dim value As String
 
instance.DataMember = value
 
value = instance.DataMember
[C1Description("Gets or sets the specific list in a DataSource object that the grid should display.")]
[C1Category("Data")]
[DefaultValue()]
[Editor(EditorBaseTypeName="System.Drawing.Design.UITypeEditor, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a", EditorTypeName="System.Windows.Forms.Design.DataMemberListEditor, System.Design")]
public string DataMember {get; set;}
[C1Description("Gets or sets the specific list in a DataSource object that the grid should display.")]
[C1Category("Data")]
[DefaultValue()]
[Editor(EditorBaseTypeName="System.Drawing.Design.UITypeEditor, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a", EditorTypeName="System.Windows.Forms.Design.DataMemberListEditor, System.Design")]
public:
property String^ DataMember {
   String^ get();
   void set (    String^ value);
}
Remarks

If a DataSource contains multiple sources of data, you should set the DataMember property to one of the sources.

For example, if the DataSource is a System.Data.DataSet contains three tables named Customers, Orders, and OrderDetails, you must specify one of the tables to bind to.

If the System.Data.DataSet contains only one System.Data.DataTable, you may set the DataMember property to an empty string.

You can use the SetDataBinding(Object,String) method to set the DataSource and DataMember properties at the same time.

Requirements

Target Platforms: Windows 7, Windows Vista SP1 or later, Windows XP SP3, Windows Server 2008 (Server Core not supported), Windows Server 2008 R2 (Server Core supported with SP1 or later), Windows Server 2003 SP2

See Also

Reference

C1FlexGridBase Class
C1FlexGridBase Members

 

 


Copyright (c) GrapeCity, inc. All rights reserved.

Send Feedback