Can we use html Tag in GridView

  • Thread starter Thread starter ad
  • Start date Start date
A

ad

I want to change some color of words in a GridView.
So I add some Html tag to the words in a Gridview like:

<font color='Red'>MyTest Words</font>

But the it did not change the color but jset how the Html tag around it.

If we can use html tag in the content of GirdView?
 
"ad" <[email protected]>'s wild thoughts were released
I want to change some color of words in a GridView.
So I add some Html tag to the words in a Gridview like:

<font color='Red'>MyTest Words</font>

But the it did not change the color but jset how the Html tag around it.

If we can use html tag in the content of GirdView?

Yes you can, but I think you need to post more to determine
why it'n not working for you.

I added your example in my RowDataBound event in the grid
I'm working on now, and I see nice red text as expected.





Jan Hyde (VB MVP)
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Back
Top