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, Windows XP SP2, Windows XP Media Center Edition, Windows XP Professional x64 Edition, Windows XP Starter Edition, Windows Server 2008 R2, Windows Server 2008, Windows Server 2003, Windows Server 2000 SP4, Windows Millennium Edition, Windows 98
The .NET Framework and .NET Compact Framework do not support all versions of every platform. For a list of the supported versions, see .NET Framework System Requirements.
Note: