I have a DataGrid that I am trying to run with a CssClass but the class does not get applied. I want the Alternating rows to be "teal" and I want to use a class, but it doesn't seem to work.
The .css file has only the teal entry in it:
.teal {
color:#4AAABD
}
This does not get applied.
But if I change the CssClass to Backcolor it does get applied.
<AlternatingItemStyle BorderWidth="0px" BorderStyle="None" BackColor="teal" />
Why is that?
Thanks,
Tom
Code:
<asp:dataGrid id="DataGrid1"
runat="server"
footerstyle-horizontalalign="center"
AutoGenerateColumns="false"
CellPadding="0"
CellSpacing="0"
ShowFooter="true"
BorderColor="Gray"
style="margin-left:3px" HeaderStyle-Font-Bold="true" HeaderStyle-VerticalAlign="Bottom"
border="1">
<AlternatingItemStyle BorderWidth="0px" BorderStyle="None" CssClass="teal" />
The .css file has only the teal entry in it:
.teal {
color:#4AAABD
}
This does not get applied.
But if I change the CssClass to Backcolor it does get applied.
<AlternatingItemStyle BorderWidth="0px" BorderStyle="None" BackColor="teal" />
Why is that?
Thanks,
Tom