Re: DataGrid Column Heading HTML Encoding ?
- From: "Adrian Parker" <apparker@xxxxxxxxxxxxx>
- Date: Tue, 28 Feb 2006 11:29:36 -0000
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]" <stcheng@xxxxxxxxxxxxxxxxxxxx> wrote in message
news:i$oABLCPGHA.4808@xxxxxxxxxxxxxxxxxxxxxxxx
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
.
- References:
- DataGrid Column Heading HTML Encoding ?
- From: Adrian Parker
- RE: DataGrid Column Heading HTML Encoding ?
- From: Steven Cheng[MSFT]
- DataGrid Column Heading HTML Encoding ?
- Prev by Date: Change DataGrid EditControl based On Column Value
- Next by Date: RE: ObjectDatasource - Does it support multiple data tables?
- Previous by thread: RE: DataGrid Column Heading HTML Encoding ?
- Next by thread: Immediate window ASP 2.0
- Index(es):