T
tshad
I have a DataGrid where I want the text in the cells to be black. But I
want the header to have a black background and white text.
The problem is the settings in the DataGrid are not overriding the Css files
(which is in a User Control).
The Css file (in the .aspx file) has the following lines:
td {
font-family: Verdana, Arial, Helvetica, sans-serif;
font-size: 11px;
color: #000000;
text-decoration: none;
}
This should make all my table cells black, which it does.
I then have the following DataGrid setting for the HeaderStyle:
<headerstyle CssClass="jay" BackColor="#000000" ForeColor="#FFFFFF"
Font-Bold="true" />
The style Jay is:
..jay { color:#FFFFFF; font-weight:bold}
I have this in my .ascx file after the style sheet. And the HeaderStyle is
using "jay" and has the ForeColor="#FFFFFF".
But the color of the background is correct, but the text is black (the "td"
definition).
So why isn't the "td" style overroad?
Thanks,
Tom
want the header to have a black background and white text.
The problem is the settings in the DataGrid are not overriding the Css files
(which is in a User Control).
The Css file (in the .aspx file) has the following lines:
td {
font-family: Verdana, Arial, Helvetica, sans-serif;
font-size: 11px;
color: #000000;
text-decoration: none;
}
This should make all my table cells black, which it does.
I then have the following DataGrid setting for the HeaderStyle:
<headerstyle CssClass="jay" BackColor="#000000" ForeColor="#FFFFFF"
Font-Bold="true" />
The style Jay is:
..jay { color:#FFFFFF; font-weight:bold}
I have this in my .ascx file after the style sheet. And the HeaderStyle is
using "jay" and has the ForeColor="#FFFFFF".
But the color of the background is correct, but the text is black (the "td"
definition).
So why isn't the "td" style overroad?
Thanks,
Tom