DataGridColumn::HeaderText Property
.NET Framework (current version)
Gets or sets the text displayed in the header section of the column.
Assembly: System.Web (in System.Web.dll)
public: property String^ HeaderText { virtual String^ get(); virtual void set(String^ value); }
Property Value
Type: System::String^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. |
.NET Framework
Available since 1.1
Available since 1.1
Show:
