aspxtreme

DataGrid.BackImageUrl Property

System.Web.UI.WebControls Namespace   DataGrid Class


Sets or retrieves the URL of an image to display in the background of the DataGrid control.

Syntax


Inline <control backimageurl = strUrl ... >
Script DataGrid.BackImageUrl = strUrl

Property Value


strUrl String specifying the URL of an image to display in the background of the DataGrid control.

The property is read/write with no default value.

Remarks

Use the BackImageUrl property to specify an image to display in the background of the DataGrid control.

NOTE: If the specified image is smaller than the DataGrid control, the image will tile to fill in the background of the control.

Example

The following example demonstrates how to set the BackImageUrl property at design time to specify a background image for the DataGrid control.

<asp:datagrid id = "myGrid" runat = "server"
   ...
   backimageurl = "~/shared/back.gif"
   forecolor = "beige" font-bold />

 Show me 

See Also

DataGrid Members



Books and more ...


Suggested Reading

Need a break ?



Previous page Back to top Next page

Check out related books at Amazon

© 2000-2008 Rey Nuñez All rights reserved.

If you have any question, comment or suggestion
about this site, please send us a note

You can help support aspxtreme