Hi Steven,
Just found the solution.. We're using 2.0 and we were already using a
templare which inherits from BoundField.
What we needed to do was to add the following to the template properties:-
Protected Overrides ReadOnly Property SupportsHtmlEncode() As Boolean
Get
Return False
End Get
End Property
Then the html is rendered as expected.
--
Adrian Parker
Ingenuity At Work Ltd
"Steven Cheng[MSFT]" <st*****@online.microsoft.com> wrote in message
news:i$**************@TK2MSFTNGXA03.phx.gbl...
Hi Adrian,
Are you using ASP.NET 1.1 or ASP.NET 2.0. I've just tried using the
DataGrid in ASP.NET 2.0 page with some html element like <br/> in the
BoundColumn's HeaderText and it can works. Also, I think you can consider
using TemplateColumn since it can let us customize the Header by inputing
discretionary html content in the HeaderTemplate.
Hope this helps.
Regards,
Steven Cheng
Microsoft Online Support