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

Gets or sets a reference to the DataRow object used as a template to create the data rows that will be contained within the grid.

Syntax

Visual Basic (Declaration) 
<BrowsableAttribute(False)>
<DesignerSerializationVisibilityAttribute()>
Public Property DataRowTemplate As DataRow
C# 
[BrowsableAttribute(false)]
[DesignerSerializationVisibilityAttribute()]
public DataRow DataRowTemplate {get; set;}

Return Value

A reference to the DataRow object used as a template to create the data rows that will be contained within the grid.

Remarks

All the datarows in the grid will take on the same appearance as the DataRowTemplate. For example, if the GridElement.BackColor property of the DataRowTemplate is set to pink, all the datarows in the grid will have pink as their background color.

If changes are made to the DataRowTemplate while the DataSource property is set, the changes will not automatically be reflected in the grid. In order for the modifications to be applied, the data source must be reassigned to the DataSource property.

Requirements

Target Platforms: Windows 2000 Service Pack 3; Windows 98; Windows 98 Second Edition; Windows ME; Windows Server 2003; Windows Vista Business; Windows Vista Business 64-bit edition; Windows Vista Enterprise; Windows Vista Enterprise 64-bit edition; Windows Vista Home Basic; Windows Vista Home Basic 64-bit edition; Windows Vista Home Premium; Windows Vista Home Premium 64-bit edition; Windows Vista Starter; Windows Vista Ultimate; Windows Vista Ultimate 64-bit edition; Windows XP Service Pack 2

Supported Frameworks: Microsoft .NET Framework version 2.0; Microsoft .NET Framework version 3.0

See Also