Gridview not picking the correct formatting

Collapse
This topic is closed.
X
X
 
  • Time
  • Show
Clear All
new posts
  • John

    Gridview not picking the correct formatting

    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="#990 000" Font-Bold="True" ForeColor="Whit e"
    BorderStyle="No ne" />

    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:"trebuch et 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


  • Munna

    #2
    Re: Gridview not picking the correct formatting

    On May 31, 7:38 am, "John" <i...@nospam.in fovis.co.ukwrot e:
    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="#990 000" Font-Bold="True" ForeColor="Whit e"
    BorderStyle="No ne" />
    >
    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:"trebuch et 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



    Comment

    Working...