Hi TS,
As for the text in the GridView header column, how did you put in to it?
Statically or dynamically through databinding? I've tested put static test
<br/into TemplateField's HeaderTemplate and it can be displayed correctly
as linebreak. e.g.
==============
...................
<HeaderTemplate>
Page<br />Name
<hr />
Page<br>Name
</HeaderTemplate>
<ItemTemplate>
<%# Eval("description")%>
</ItemTemplate>
</asp:TemplateField>
</Columns>
</asp:GridView>
================
Also, based on the test, if the text is from databinding source and
displayed in TemplateField, since it does not htmlencode it bydefault,
<br/can also display correctly as linebreak.
Please feel free to let me know if there is anything I missed or if you
have any further concerns.
Sincerely,
Steven Cheng
Microsoft MSDN Online Support Lead
This posting is provided "AS IS" with no warranties, and confers no rights.