Export (0) Print
Expand All

BoundField.HeaderText Property

Note: This property is new in the .NET Framework version 2.0.

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)

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 2000 SP4, Windows Server 2003, Windows XP Media Center Edition, Windows XP Professional x64 Edition, Windows XP SP2, Windows XP Starter Edition

The .NET Framework does not support all versions of every platform. For a list of the supported versions, see System Requirements.

.NET Framework

Supported in: 2.0

Community Additions

ADD
Show:
© 2014 Microsoft