DataControlField.HeaderImageUrl Property

 

Gets or sets the URL of an image that is displayed in the header item of a data control field.

Namespace:   System.Web.UI.WebControls
Assembly:  System.Web (in System.Web.dll)

abstract HeaderImageUrl : string with get, set
override HeaderImageUrl : string with get, set

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.

System_CAPS_noteNote

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.

No code example is currently available or this language may not be supported.

.NET Framework
Available since 2.0
Return to top
Show: