Gridview FooterStyle background color not changing

Posted on 2009-02-24
Last Modified: 2012-05-06
Ok, this is really bugging me.  I want the footer on my gridview to be the same blue color as my header area, but it's just coming up the same shade gray as the background.  I've messed with the FooterStyle setting a million different ways, but it's not changing.  Any ideas?
<asp:GridView ID="GridView1" runat="server" AllowPaging="True" AllowSorting="True"

                    AutoGenerateColumns="False" DataKeyNames="Patient_Id" DataSourceID="Client_Summary" PageSize="15">

                    <RowStyle BackColor="White" ForeColor="Black" Font-Size="Smaller" />


                        <asp:BoundField DataField="Patient_Last_Name" HeaderText="Last Name" SortExpression="Patient_Last_Name" />

                        <asp:BoundField DataField="Patient_First_Name" HeaderText="First Name" SortExpression="Patient_First_Name" />

                        <asp:BoundField DataField="DOB" HeaderText="DOB" ReadOnly="True" SortExpression="DOB" />

                        <asp:BoundField DataField="MIHP Patient" HeaderText="MIHP" ReadOnly="True"

                            SortExpression="MIHP Patient" />

                        <asp:HyperLinkField DataNavigateUrlFields="Patient_Id" DataNavigateUrlFormatString="demographics.aspx?Patient_Id={0}"

                            HeaderText="Demographics" Text="View" />

                        <asp:HyperLinkField DataNavigateUrlFields="Patient_Id,DetailID" DataNavigateUrlFormatString="current_pregnancy.aspx?Patient_Id={0}&amp;DetailID={1}"

                            HeaderText="Current" Text="Edit" />

                        <asp:HyperLinkField DataNavigateUrlFields="Patient_Id,DetailID" DataNavigateUrlFormatString="discharged.aspx?Patient_Id={0}&amp;DetailID={1}"

                            HeaderText="Discharged" Text="Edit" />  


                    <HeaderStyle BackColor="#5580B4" Font-Size="Smaller" />

                    <SelectedRowStyle BackColor="#C0C0FF" Font-Size="Smaller" />

                    <EmptyDataRowStyle Font-Size="Smaller" />

                    <FooterStyle Font-Size="Smaller" BackColor="#5580B4" Font-Names="#5580b4" />

                    <EditRowStyle Font-Size="Smaller" />

                    <AlternatingRowStyle Font-Size="Smaller" BackColor="Silver" />


Open in new window

Question by:IntercareSupport
    LVL 26

    Expert Comment

    by:Anurag Thakur
    that is not the footer that is the paging part of the gridview
    you might what to set the colur for that section
    LVL 15

    Accepted Solution

    That wouldn't be the FooterStyle, that's the PagerStyle.

    Author Closing Comment

    I'm stupid.  Thanks.

    Featured Post

    Looking for New Ways to Advertise?

    Engage with tech pros in our community with native advertising, as a Vendor Expert, and more.

    Join & Write a Comment

    I recently went through the process of creating a Calendar Control of events with the basis of using a database to keep track of the dates that are selectable, one requirement was to have the selected date pop-up in a simple lightbox.  At first this…
    It was really hard time for me to get the understanding of Delegates in C#. I went through many websites and articles but I found them very clumsy. After going through those sites, I noted down the points in a easy way so here I am sharing that unde…
    Need more eyes on your posted question? Go ahead and follow the quick steps in this video to learn how to Request Attention to your question. *Log into your Experts Exchange account *Find the question you want to Request Attention for *Go to the e…
    This video discusses moving either the default database or any database to a new volume.

    754 members asked questions and received personalized solutions in the past 7 days.

    Join the community of 500,000 technology professionals and ask your questions.

    Join & Ask a Question

    Need Help in Real-Time?

    Connect with top rated Experts

    25 Experts available now in Live!

    Get 1:1 Help Now