DataControlField::HeaderImageUrl Property
.NET Framework (current version)
Gets or sets the URL of an image that is displayed in the header item of a data control field.
Assembly: System.Web (in System.Web.dll)
public: property String^ HeaderImageUrl { virtual String^ get(); virtual void set(String^ value); }
Property Value
Type: System::String^A string that represents a fully qualified or relative URL to an image that is displayed in the header item of the DataControlField.
Set the HeaderImageUrl property when you want an image displayed in the header item of a data control instead of header text.
Note |
|---|
If both the HeaderText and HeaderImageUrl properties are set, the HeaderImageUrl property has precedence. |
The following code example demonstrates how to declaratively set the HeaderImageUrl property of a ButtonField column, which displays an image in the GridView control's column header instead of header text.
.NET Framework
Available since 2.0
Available since 2.0
Show:
