System.Web.UI.WebControls.DetailsView.HeaderText Property

Gets or sets the text to display in the header row of a System.Web.UI.WebControls.DetailsView control.

Syntax

[System.ComponentModel.DefaultValue("")]
[System.ComponentModel.Localizable(true)]
public virtual string HeaderText { set; 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.HeaderText property to specify the text to display in the header row. To control the style of the header row, use the DetailsView.HeaderStyle property. Alternatively, you can define your own custom user interface (UI) for the header row by setting the DetailsView.HeaderTemplate property instead of this property.

Note:

If both the DetailsView.HeaderText and DetailsView.HeaderTemplate properties are set, the DetailsView.HeaderTemplate property takes precedence.

The value of DetailsView.HeaderText is stored in view state.

The value of this property, when set, can be saved automatically to a resource file by using a designer tool. For more information, see System.ComponentModel.LocalizableAttribute and ASP.NET Globalization and Localization.

Requirements

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