System.Web.UI.WebControls.DataControlFieldHeaderCell Class

In accessibility scenarios, represents a header cell in the rendered table of a tabular ASP.NET data-bound control, such as System.Web.UI.WebControls.GridView.

See Also: DataControlFieldHeaderCell Members


public class DataControlFieldHeaderCell : DataControlFieldCell


The System.Web.UI.WebControls.DataControlFieldHeaderCell class is used by data tables (such as the System.Web.UI.WebControls.GridView control) to represent accessible headers. Tabular controls such as System.Web.UI.WebControls.DetailsView and System.Web.UI.WebControls.FormView are considered layout tables, and therefore do not require accessible headers and do not use the System.Web.UI.WebControls.DataControlFieldHeaderCell class.

The System.Web.UI.WebControls.DataControlFieldHeaderCell class is used in two cases:

If neither is the case, a regular System.Web.UI.WebControls.DataControlFieldHeaderCell object is used, which renders a <td> instead of a <th> element.

Because the System.Web.UI.WebControls.DataControlFieldHeaderCell class supports the DataControlFieldHeaderCell.AbbreviatedText property, it is used by the System.Web.UI.WebControls.GridView control whenever the GridView.UseAccessibleHeader property is true.


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