Intersoft WebGrid Documentation
DataMember Property
See Also  Send Feedback
ISNet.WebUI.WebGrid Namespace > WebGridColumn Class : DataMember Property






Gets or sets the name of the data column for which its data value will be displayed.

Syntax

Visual Basic (Declaration) 
<DefaultValueAttribute()>
<DescriptionAttribute("Gets or sets the name of the data column for which its data value will be displayed.")>
<NotifyParentPropertyAttribute(True)>
<ISNet.Serialization.XmlSerializableAttribute()>
<EditorAttribute(EditorBaseTypeName="System.Drawing.Design.UITypeEditor, System.Drawing, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a", EditorTypeName="ISNet.WebUI.WebGrid.DataFieldEditor, ISNet.WebUI.WebGrid, Version=8.0.7200.100, Culture=neutral, PublicKeyToken=3e60b85fb8502d5e")>
<ISNet.Serialization.BinarySerializableAttribute()>
Public Property DataMember As String
Visual Basic (Usage)Copy Code
Dim instance As WebGridColumn
Dim value As String
 
instance.DataMember = value
 
value = instance.DataMember
C# 
[DefaultValueAttribute()]
[DescriptionAttribute("Gets or sets the name of the data column for which its data value will be displayed.")]
[NotifyParentPropertyAttribute(true)]
[ISNet.Serialization.XmlSerializableAttribute()]
[EditorAttribute(EditorBaseTypeName="System.Drawing.Design.UITypeEditor, System.Drawing, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a", EditorTypeName="ISNet.WebUI.WebGrid.DataFieldEditor, ISNet.WebUI.WebGrid, Version=8.0.7200.100, Culture=neutral, PublicKeyToken=3e60b85fb8502d5e")]
[ISNet.Serialization.BinarySerializableAttribute()]
public string DataMember {get; set;}
Delphi 
public read-write property DataMember: String; 
JScript 
DefaultValueAttribute()
DescriptionAttribute("Gets or sets the name of the data column for which its data value will be displayed.")
NotifyParentPropertyAttribute()
ISNet.Serialization.XmlSerializableAttribute()
EditorAttribute(EditorBaseTypeName="System.Drawing.Design.UITypeEditor, System.Drawing, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a", EditorTypeName="ISNet.WebUI.WebGrid.DataFieldEditor, ISNet.WebUI.WebGrid, Version=8.0.7200.100, Culture=neutral, PublicKeyToken=3e60b85fb8502d5e")
ISNet.Serialization.BinarySerializableAttribute()
public function get,set DataMember : String
Managed Extensions for C++ 
[DefaultValueAttribute()]
[DescriptionAttribute("Gets or sets the name of the data column for which its data value will be displayed.")]
[NotifyParentPropertyAttribute(true)]
[ISNet.Serialization.XmlSerializableAttribute()]
[EditorAttribute(EditorBaseTypeName="System.Drawing.Design.UITypeEditor, System.Drawing, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a", EditorTypeName="ISNet.WebUI.WebGrid.DataFieldEditor, ISNet.WebUI.WebGrid, Version=8.0.7200.100, Culture=neutral, PublicKeyToken=3e60b85fb8502d5e")]
[ISNet.Serialization.BinarySerializableAttribute()]
public: __property string* get_DataMember();
public: __property void set_DataMember( 
   string* value
);
C++/CLI 
[DefaultValueAttribute()]
[DescriptionAttribute("Gets or sets the name of the data column for which its data value will be displayed.")]
[NotifyParentPropertyAttribute(true)]
[ISNet.Serialization.XmlSerializableAttribute()]
[EditorAttribute(EditorBaseTypeName="System.Drawing.Design.UITypeEditor, System.Drawing, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a", EditorTypeName="ISNet.WebUI.WebGrid.DataFieldEditor, ISNet.WebUI.WebGrid, Version=8.0.7200.100, Culture=neutral, PublicKeyToken=3e60b85fb8502d5e")]
[ISNet.Serialization.BinarySerializableAttribute()]
public:
property String^ DataMember {
   String^ get();
   void set (    String^ value);
}

Remarks

When you use Template column and you would like to allow grouping, sorting, and editing on Templated column, you need to specify the DataMember. This enables WebGrid to use native value of represented row item for the data operation purpose.

Requirements

Target Platforms: Windows 98, Windows NT 4.0, Windows Millennium Edition, Windows 2000, Windows XP Home Edition, Windows XP Professional, Windows Server 2003 family, Windows Vista, Windows Server 2008 family

See Also

©2012 Intersoft Solutions Corp. All Rights Reserved.