System.Web.UI.WebControls.DataControlField.HeaderText Property

Gets or sets the text that is displayed in the header item of a data control field.

Syntax

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

Value

Documentation for this section has not yet been entered.

Remarks

Use the DataControlField.HeaderText property to identify a field in a data control with a friendly name. The most common application of the DataControlField.HeaderText property is to provide meaningful column names for data-bound fields in a System.Web.UI.WebControls.GridView or System.Web.UI.WebControls.DetailsView control.

Note:

If both the DataControlField.HeaderText and DataControlField.HeaderImageUrl properties are set, the DataControlField.HeaderImageUrl property has precedence.

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