Css and DataGrid

T

tshad

I am having a problem getting my Grid links to work correctly.

I have the following DataGrid:

<anthem:DataGrid AllowPaging="true"
AllowCustomPaging="false"
PageSize="10"
PagerStyle-Visible="false"
Visible=false
AllowSorting="True"
AutoGenerateColumns="false"
CellPadding="0"
CellSpacing="0"
ID="DataGrid1"
runat="server"
ShowFooter="false"
ShowHeader="true"
OnSortCommand="SortDataGrid"
BorderWidth="0"
Width="835px">
<headerstyle HorizontalAlign="center" CssClass="gridHeaderStyle" />
<alternatingitemstyle CssClass="alternateRows" />
<pagerstyle CssClass="gridPagerStyle" />
<columns>
<asp:BoundColumn DataField="Applied"
ItemStyle-Width="15px"
HeaderStyle-Width="15px"
ReadOnly="true"
Visible="True"
ItemStyle-VerticalAlign="Top">
<itemstyle ForeColor="red" />
</asp:BoundColumn>
<asp:BoundColumn DataField="Rank"
HeaderText="Rank"
ReadOnly="true"
Visible="false"
ItemStyle-VerticalAlign="Top"
SortExpression="Rank">
</asp:BoundColumn>
</columns>
</anthem:DataGrid>

I have the following CSS:

a:link, a:visited {
color:#CCFF33; - lime Green (just for testing)
}
..gridHeaderStyle {
color:#33FFCC;
background-color:#000000;
font-weight:bold
}
..gridHeaderStyle a:link, .gridHeaderStyle a:visited {
color:#red;
}
a.gridHeaderStyle:link, a.gridHeaderStyle:visited {
color:#red;
}
..gridPagerStyle {
background-color:red
}


No matter what I do - the links in the header that are for sorting are
showing as lime green. I am trying to get them to change to red.

The links in my site should be Lime Green (a:link and a:visited). I have
the headerstyles' CssClass set to gridHeaderStyle - but it doesn't seem to
be working for the links in the header.

Am I missing something here?

Thanks,

Tom
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top