HeaderText Property

BoundField.HeaderText Property

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

Namespace: System.Web.UI.WebControls
Assembly: System.Web (in system.web.dll)

public override string HeaderText { get; set; }
/** @property */
public String get_HeaderText ()

/** @property */
public void set_HeaderText (String value)

public override function get HeaderText () : String

public override function set HeaderText (value : String)

Not applicable.

Property Value

The text displayed in the header of a data control. The default value is an empty string ("").

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

Windows 98, Windows Server 2000 SP4, Windows Server 2003, Windows XP Media Center Edition, Windows XP Professional x64 Edition, Windows XP SP2, Windows XP Starter Edition

The Microsoft .NET Framework 3.0 is supported on Windows Vista, Microsoft Windows XP SP2, and Windows Server 2003 SP1.

.NET Framework

Supported in: 3.0, 2.0

Community Additions

ADD
Show:
© 2016 Microsoft