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


Xceed.Grid.v4.3 Assembly > Xceed.Grid Namespace > GridControl Class : DataRowTemplateStyles Property
Gets a list of the styles applied to the grid's datarows.
Syntax
'Declaration
 
<BrowsableAttribute(False)>
<DesignerSerializationVisibilityAttribute(DesignerSerializationVisibility.Content)>
Public ReadOnly Property DataRowTemplateStyles As VisualGridElementStyleList
'Usage
 
Dim instance As GridControl
Dim value As VisualGridElementStyleList
 
value = instance.DataRowTemplateStyles
[Browsable(false)]
[DesignerSerializationVisibility(DesignerSerializationVisibility.Content)]
public VisualGridElementStyleList DataRowTemplateStyles {get;}

Property Value

A list of VisualGridElementStyle objects representing the styles applied to the datarows created by the DataRowTemplate.
Remarks

The DataRowTemplateStyles allow for the appearance of the datarows in the grid to be alternated. For example, if there are two styles in the collection, with the first having its background color set to pink and the second to blue, the background color of the datarows (once the grid is populated) will alternate between pink and blue.

Keep in mind that any properties set directly on the DataRowTemplate will "override" those of the styles. For example, if the background color of the first datarow style is pink and the second blue but the GridElement.BackColor property of the DataRowTemplate was set to green then, once the grid is populate, all the datarows will have a green background.
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
DataRowTemplate Property