Xceed Grid for WinForms v4.3 Documentation
DataRowTemplate Property (GridControl)


Xceed.Grid.v4.3 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
'Declaration
 
<BrowsableAttribute(False)>
<DesignerSerializationVisibilityAttribute(DesignerSerializationVisibility.Visible)>
Public Property DataRowTemplate As DataRow
'Usage
 
Dim instance As GridControl
Dim value As DataRow
 
instance.DataRowTemplate = value
 
value = instance.DataRowTemplate
[Browsable(false)]
[DesignerSerializationVisibility(DesignerSerializationVisibility.Visible)]
public DataRow DataRowTemplate {get; set;}

Property 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 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

GridControl Class
GridControl Members
DataRowTemplateStyles Property