DataGridColumn.HeaderText Property
.NET Framework 3.0
Gets or sets the text displayed in the header section of the column.
Namespace: System.Web.UI.WebControls
Assembly: System.Web (in system.web.dll)
Assembly: System.Web (in system.web.dll)
/** @property */ public String get_HeaderText () /** @property */ public void set_HeaderText (String value)
public function get HeaderText () : String public function set HeaderText (value : String)
Not applicable.
Property Value
The text displayed in the header section of the column. The default value is String.Empty.Use the HeaderText property to specify or determine the text displayed in the header section of the column. If you want to display an image instead of text in the header section of the column, set the HeaderImageUrl property instead of this property.
Caution: |
|---|
| Text is not HTML-encoded before it is displayed in the header section of the column. This makes it possible to embed script within HTML tags in the text. If this property is set dynamically using user input, be sure to validate the value to reduce security vulnerabilities. |
Community Additions
ADD
Show:
Caution: