G Guest Jun 1, 2006 #1 I have a BoundField, and I need to split the HeaderText onto >1 line. Is that possible? An embedded <BR> is just added as text. Thanks
I have a BoundField, and I need to split the HeaderText onto >1 line. Is that possible? An embedded <BR> is just added as text. Thanks
P PeterKellner Jun 1, 2006 #2 I have a BoundField, and I need to split the HeaderText onto >1 line. Is that possible? An embedded <BR> is just added as text. Thanks Click to expand... You need to set HtmlEncode like this: <asp:BoundField DataField="CreationDate" HtmlEncode="false" HeaderText="Creation <br/> Date" ReadOnly="True" SortExpression="CreationDate" /> I wrote a post about something similar for more info: http://peterkellner.net/?p=36 Peter Kellner http://peterkellner.net
I have a BoundField, and I need to split the HeaderText onto >1 line. Is that possible? An embedded <BR> is just added as text. Thanks Click to expand... You need to set HtmlEncode like this: <asp:BoundField DataField="CreationDate" HtmlEncode="false" HeaderText="Creation <br/> Date" ReadOnly="True" SortExpression="CreationDate" /> I wrote a post about something similar for more info: http://peterkellner.net/?p=36 Peter Kellner http://peterkellner.net