Gridview not picking the correct formatting

  • Thread starter Thread starter John
  • Start date Start date
J

John

Hi

I have a grid view to which I have applied the format colorful. This format
has white header text and the grid view code does have the following line;

<HeaderStyle BackColor="#990000" Font-Bold="True" ForeColor="White"
BorderStyle="None" />

Unfortunately the grid view header text is coming out as gray as per the css
applied to the page as below;

body,td,th {
color: #3E4349;
font-family:"trebuchet ms", trebuchet, tahoma, Verdana, Arial, sans-serif;
font-size:12px;
vertical-align:top;
}

How can I make the grid view header text white overriding the css?

Thanks

Regards
 
Hi

I have a grid view to which I have applied the format colorful. This format
has white header text and the grid view code does have the following line;

<HeaderStyle BackColor="#990000" Font-Bold="True" ForeColor="White"
BorderStyle="None" />

Unfortunately the grid view header text is coming out as gray as per the css
applied to the page as below;

body,td,th {
color: #3E4349;
font-family:"trebuchet ms", trebuchet, tahoma, Verdana, Arial, sans-serif;
font-size:12px;
vertical-align:top;

}

How can I make the grid view header text white overriding the css?

Thanks

Regards
Hi

use a css and mark the css style as !important;

..headerStyle
{
color:green !important;
}


Best of luck

Munna
www.munna.shatkotha.com
www.munna.shatkotha.com/blog
www.shatkotha.com
 
Back
Top