Style properties of GridView control

Property

Type

Description

AlternatingRowStyle

TableItemStyle

You can use this property to get a reference to the TableItemStyle object that enables you to define the style properties for every other row in the table.

EditRowStyle

TableItemStyle

You can use this property to get a reference to the TableItemStyle object that enables you to define the style properties for the row being edited.

FooterStyle

TableItemStyle

You can use this property to get a reference to the TableItemStyle object that enables you to define the style properties for the grid’s footer.

HeaderStyle

TableItemStyle

You can use this property to get a reference to the TableItemStyle object that enables you to define the style properties for the grid’s header.

EmptyDataRowStyle

TableItemStyle

You can use this property to get a reference to the TableItemStyle object that enables to set the appearance of the empty data row, which is rendered when the GridView is bound to empty data sources.

PagerStyle

TableItemStyle

You can use this property to get a reference to the TableItemStyle that enables you to define properties for the grid’s pager.

RowStyle

TableItemStyle

You can use this property to get a reference to the TableItemStyle object that enables you to define the style properties for the rows in the table.

SelectedRowStyle

TableItemStyle

You can use this property to get a reference to the TableItemStyle object that enables you to define the style properties for the currently selected row.