Click here to Skip to main content
15,895,667 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
Ho do i add kg/m2 (kg/meter <sup>2</sup>)
Squre is not showing in header text ,its just show 2.
help me to solve this

<pre> <asp:BoundField DataField="BMI" HeaderText="BMI (kg)/m2" HeaderStyle-VerticalAlign="Top"
                    HeaderStyle-Width="100px">
                    <HeaderStyle VerticalAlign="Top"  Width="100px" />
                </asp:BoundField>


What I have tried:

2 but not resolve. with sup tag .
I have tried to add htmlencode=true but not resolve to this also.
Posted
Updated 15-Aug-18 19:32pm
v3
Comments
Herman<T>.Instance 16-Aug-18 3:46am    
Have you tried a TemplateField with a HeaderTemplate with a Label in it in stead of the BoundField? In code behind you could 'FindControl' the Label and set the sup in the text.
Member 13896515 16-Aug-18 8:00am    
Yes ! it has been resolved with TemplateField.

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900