[Okta Webinar] Learn how to a build a cloud-first strategyRegister Now

  • Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 880
  • Last Modified:

Gridview FooterStyle background color not changing

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

1 Solution
Anurag ThakurCommented:
that is not the footer that is the paging part of the gridview
you might what to set the colur for that section
That wouldn't be the FooterStyle, that's the PagerStyle.
IntercareSupportAuthor Commented:
I'm stupid.  Thanks.

Featured Post

Free Tool: Path Explorer

An intuitive utility to help find the CSS path to UI elements on a webpage. These paths are used frequently in a variety of front-end development and QA automation tasks.

One of a set of tools we're offering as a way of saying thank you for being a part of the community.

Tackle projects and never again get stuck behind a technical roadblock.
Join Now