I think , I did something like that.
Another way you can do it, from the code behind
System.Web.UI.WebControls.Image imgControl=new
System.Web.UI.WebControls.Image();
imgControl.ImageUrl="images/xyz.gif";
if(e.Item.ItemType==ListItemType.Header)
{
e.Item.Cells[0].Controls.Add(imgControl);
}
"lanem" <la***@discussions.microsoft.com> wrote in message
news:37**********************************@microsof t.com...
That doesn't work. You can't put HTML code in there.
"Vaibhav" wrote:
add img tags to your column header text
"lanem" <la***@discussions.microsoft.com> wrote in message
news:2B**********************************@microsof t.com... I want an image and text in the column header in my GridView. Does
anyone know how to do that? Thanks.