GridView.BackImageUrl Property

 

Gets or sets the URL to an image to display in the background of a GridView control.

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

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

Property Value

Type: System.String

The URL of an image to display in the background of the GridView control. The default is an empty string (""), which indicates that this property is not set.

Use the BackImageUrl property to specify the URL to an image to display in the background of a GridView control.

System_CAPS_noteNote

If the specified image is smaller than the GridView control, the image is tiled to fill in the background. If the image is larger than the control, the image is cropped.

The following example demonstrates how to use the BackImageUrl property to display a custom image in the background of a GridView control.

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

.NET Framework
Available since 2.0
Return to top
Show: