BoundField.HeaderText Property
.NET Framework 2.0
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)
Assembly: System.Web (in system.web.dll)
public: virtual property String^ HeaderText { String^ get () override; void set (String^ value) override; }
/** @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.
Community Additions
ADD
Show: