System.Web.UI.WebControls.FormView.HeaderText Property

Gets or sets the text to display in the header row of a System.Web.UI.WebControls.FormView 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.FormView control when the FormView.HeaderText or FormView.HeaderTemplate property is set. Use the FormView.HeaderText property to specify the text to display in the header row. To control the style of the header row, use the FormView.HeaderStyle property. Alternatively, you can define your own custom user interface (UI) for the header row by setting the FormView.HeaderTemplate property instead of this property.

Note:

If both the FormView.HeaderText and FormView.HeaderTemplate properties are set, the FormView.HeaderTemplate property takes 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