System.Web.UI.WebControls.DetailsView.HeaderRow Property

Gets a System.Web.UI.WebControls.DetailsViewRow object that represents the header row in a System.Web.UI.WebControls.DetailsView control.

Syntax

[System.ComponentModel.Browsable(false)]
[System.ComponentModel.DesignerSerializationVisibility(System.ComponentModel.DesignerSerializationVisibility.Hidden)]
public virtual DetailsViewRow HeaderRow { get; }

Value

Documentation for this section has not yet been entered.

Remarks

The header row is displayed at the top of the System.Web.UI.WebControls.DetailsView control when the DetailsView.HeaderText or DetailsView.HeaderTemplate property is set. Use the DetailsView.HeaderRow property to programmatically access the System.Web.UI.WebControls.DetailsViewRow object that represents the header row.

Note:

The GridView.HeaderRow property is available only after the System.Web.UI.WebControls.DetailsView control creates the header row in the DetailsView.ItemCreated event.

This property is commonly used when you need to programmatically manipulate the header row, for example when adding custom content. Any modification to the DetailsView.HeaderRow property must be performed after the System.Web.UI.WebControls.DetailsView control has been rendered; otherwise, the System.Web.UI.WebControls.DetailsView control will overwrite any changes.

Requirements

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