2

I am using Grid View in ASP (Visual Studio 2010) and just wondered is there a way to but HTML code in the header of the columns. I want to put an image in the column header rather than text I have tried img html but it just writes that out. Any ideas?

1
  • I guess you are talking about asp.net instead of classic asp. Commented Apr 2, 2011 at 12:01

1 Answer 1

2

Yes you can do that in header text of template field.

<asp:TemplateField HeaderText="<img src='.../...' alt='my image' />">
....
</TemplateField>
Sign up to request clarification or add additional context in comments.

Comments

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.