RadGrid for ASP.NET

RadGrid Send comments on this topic.
DataMember Property
See Also 
Telerik.WebControls Namespace > RadGrid Class : DataMember Property


Gets or sets the name of the list of data that the Telerik RadGrid control binds to, in cases where the data source contains more than one distinct list of data items.   

 

Namespace: Telerik.WebControls
Assembly: RadGrid (in RadGrid.dll)

Syntax

Visual Basic (Declaration) 
Overrides Public Property DataMember As String
Visual Basic (Usage)Copy Code
Dim instance As RadGrid
Dim value As String
 
instance.DataMember = value
 
value = instance.DataMember
C# 
public override string DataMember {get; set;}

Return Value

The name of the specific list of data that the Telerik RadGrid control binds to, if more than one list is supplied by a data source control. The default value is String.Empty.

Remarks

Use the DataMember property to specify a member from a multimember data source to bind to the list control. For example, if you have a data source with more than one table specified in the DataSource property, use the DataMember property to specify which table to bind to a data listing control.

The value of the DataMember property is stored in view state.

This property cannot be set by themes or style sheet themes. For more information, see ThemeableAttribute and Themes and Skins Overview in MSDN.

Requirements

Platforms: Windows 2000, Windows XP Professional, Windows Server 2003 family

See Also