Hi,
This is my GridView control:
1 <asp:GridView
2 ID="GridView1"
3 runat="server"
4 DataSourceID="AccessDataSource1"
5 AllowSorting="True"
6 AlternatingRowStyle-BackColor="#EEFFFF"
7 AlternatingRowStyle-ForeColor="#000099"
8 BorderStyle="Solid"
9 ForeColor="#000099"
10 HeaderStyle-BackColor="#000099"
11 HeaderStyle-ForeColor="#EEFFFF"
12 Font-Names="Calibri"
13 Font-Size="16px"
14 HeaderStyle-CssClass="headerRow">
15 </asp:GridView>
and this is my CSS
1 .headerRow{
2 text-decoration:none;
3 }
4 td{
5 padding-left:10px;
6 padding-right:10px;
7 }
8
9 th{
10 text-decoration:none;
11 }
There isn't an issue with the CSS not being read as the <td> class is working.
As you see, I've set the <th> as well, as this is what is generated by the GridView for the header. Neither this nor the .headerRow is having any effect i.e. the sort links are still underlined.
Thanks