System.Web.UI.WebControls.GridView.RowHeaderColumn Property

Gets or sets the name of the column to use as the column header for the System.Web.UI.WebControls.GridView control. This property is provided to make the control more accessible to users of assistive technology devices.

Syntax

[System.ComponentModel.DefaultValue("")]
public virtual string RowHeaderColumn { set; get; }

Value

Documentation for this section has not yet been entered.

Remarks

In HTML, the header of a table can be associated with either a row or a column. The direction is specified by setting the scope attribute of the <th> elements. The System.Web.UI.WebControls.GridView control has a built-in header row that can be displayed by setting the GridView.ShowHeader property to true. You can also optionally specify a header column (usually the first or last column in the System.Web.UI.WebControls.GridView control) by setting this property. When this property is set, all cells in the column that corresponds to the specified field name are rendered as <th scope="row"> elements.

Note:

Although the specified column is treated like a header, the GridView.HeaderStyle, GridView.ShowHeader, and GridView.UseAccessibleHeader properties do not apply to the header column.

The default rendering of the <th> element is preserved, rendering text as bold and centered horizontally. Developers can override the behavior of the <th> element using a cascading style sheet.

Note:

This property works only with bound fields. It does not work with template fields.

Requirements

Namespace: System.Web.UI.WebControls
Assembly: System.Web (in System.Web.dll)
Assembly Versions: 2.0.0.0
Since: .NET 2.0