Click here to Skip to main content
15,892,809 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
How to remove the header underline which comes default
please see my aspx gridview

Here Subject @ header shown with underline
Please Help..


XML
<asp:GridView ID="dgvMaildetail" runat="server" Width="100%" AutoGenerateColumns="False"
                                                       AllowSorting="True" DataKeyNames="md_id" AllowPaging="True" OnPageIndexChanging="dgvMaildetail_PageIndexChanging"
                                                       RowStyle-Height="15px">
                                                       <Columns>
     <asp:TemplateField HeaderText="Subject" SortExpression="md_subject">
                                                               <ItemTemplate>
                                                                   <asp:LinkButton ID="lnksubject" CausesValidation="false"
                                                                        Text='<%#Eval("md_subject") %>'
                                                                       runat="server" Width="50%"></asp:LinkButton>
                                                               </ItemTemplate>
                                                           </asp:TemplateField>
 </Columns>
                                                   </asp:GridView>
Posted

The underline is being applied because the column is sortable. Either set AllowSorting to false or override the CSS.
 
Share this answer
 
Comments
Rakesh S S 24-Nov-11 12:15pm    
where should i apply the css
i tried with css but not working
and i want it to be sortable
[no name] 24-Nov-11 13:21pm    
Where and how did you try it?
 
Share this answer
 

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