DataControlField::HeaderImageUrl Property
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: virtual property String^ HeaderImageUrl { String^ get (); void set (String^ value); }
Property Value
Type: System::StringA 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.
Windows 7, Windows Vista SP1 or later, Windows XP SP3, Windows XP SP2 x64 Edition, Windows Server 2008 (Server Core not supported), Windows Server 2008 R2 (Server Core supported with SP1 or later), Windows Server 2003 SP2
The .NET Framework does not support all versions of every platform. For a list of the supported versions, see .NET Framework System Requirements.
Note