<asp:GridView AllowSorting="true" onsorting="grid_Sorting"....>
<asp:TemplateField ...>
<HeaderStyle Font-Underline="True" />
</asp:TemplateField>
<asp:BoundField SortExpression="xyz"...>
<HeaderStyle Font-Underline="True" />
</asp:BoundField>
</asp:GridView>
I want to show GridView column header as underline so that user will undestand the header supports the sorting.
Right now only on mouse over it is showing underline to the column header.
I am using above code but still not getting underline to the Column Header.
What is the way to do this?
This will work:
Simply add tag to your header text. Change the header text to suit your needs.
For
BoundField(actually for all), this will work i guess.Add this between your
<head>tag+1 if this helps.