c# - Show underline to column header for GridView Sort -
c# - Show underline to column header for GridView Sort -
<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 show gridview column header underline user undestand header supports sorting. right on mouse on showing underline column header. using above code still not getting underline column header. way this?
this work:
<asp:templatefield headertext="<u>your header text</u>" //define template here </asp:templatefield>
simply add together tag header text. alter header text suit needs.
for boundfield
(actually all), work guess.
add between <head>
tag
<style> th { text-decoration:underline } </style>
+1 if helps.
c# asp.net gridview
Comments
Post a Comment