GridView.RowHeaderColumn Property
Assembly: System.Web (in system.web.dll)
[TypeConverterAttribute(L"System.Web.UI.Design.DataColumnSelectionConverter, System.Design, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a")] public: virtual property String^ RowHeaderColumn { String^ get (); void set (String^ value); }
/** @property */ public String get_RowHeaderColumn () /** @property */ public void set_RowHeaderColumn (String value)
public function get RowHeaderColumn () : String public function set RowHeaderColumn (value : String)
Not applicable.
Property Value
The name of the column to use as the column header. The default is an empty string (""), which indicates that this property is not set.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 GridView control has a built-in header row that can be displayed by setting the ShowHeader property to true. You can also optionally specify a header column (usually the first or last column in the 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 HeaderStyle, ShowHeader, and 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: |
|---|
| Requiring the use of style sheets is discouraged when creating accessible Web pages. |
Note: