Saturday, November 19, 2005

Background Image for Datagrid Header

we all know that we can set an image as the header in the datagrid by setting the HeaderImageUrl property of that column. But how do we set a image as "background" image of header and display the header text over it ???

well, its easy. just write html for it in the HeaderText property. For Eg:

HeaderText="<.table background='anu.jpg' height='280px' Width='350px'><.tr><.td>name<./td><./tr><./table>"

Please Note that i have included a "." in all Tags above. This was done cos doesnt allow me to post HTML code as text.