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

x
  • 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" />
                    <Columns>
                        <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" />  
                    </Columns>
                    <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" />
                </asp:GridView>

Open in new window

annoying.PNG
0
IntercareSupport
Asked:
IntercareSupport
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
0
 
aibusinesssolutionsCommented:
That wouldn't be the FooterStyle, that's the PagerStyle.
0
 
IntercareSupportAuthor Commented:
I'm stupid.  Thanks.
0

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