Simple place the code inside the Gridviews RowDataBound event:
If (e.Row.RowType = DataControlRowType.DataRow) Then
Dim cells As TableCellCollection
cells = e.Row.Cells
Dim cell = New TableCell
For Each cell In cells
cell.Text = Server.HtmlDecode(cell.Text)
Next
End If
Now every cell that has HTML inside will get rendered, such as HREF's etc ;)
1 comment:
That's awsome!
Thanks... always hated creating bound columns just to render html.
-shareefer20
Post a Comment