is there a way to freeze header columns in a gridview or populate the footer with whatever is in the header columns?

Posted on 2007-10-01
Last Modified: 2008-01-09
hi all, i've got a gridview on a content page that has 100 rows per page.  Users want the column headers to either also be displayed at the bottom of the gridview, or to have the column headers always stay on the screen when they are scrolling down the records.

How can i do this?

header1  header2 header3
xxx          xxx         xxxx
xxxx        xxx         xxxx
header1 header2 header3   -- this is what i'm trying to do, header columns displayed at bottom of grid, or make so header column stays in place while user scrolls down.  i would prefer the latter, but will take the former.


<asp:GridView ID="gridviewXmlFile" runat="server" AllowPaging="true" AllowSorting="true"  
                            AutoGenerateColumns="true" EnableViewState="false" HorizontalAlign="Left" OnPageIndexChanging="gridviewXmlFile_PageIndexChanging"
                            OnSorting="gridviewXmlFile_Sorting" PageSize="100" >
                            <RowStyle Wrap="false" />
                            <PagerStyle HorizontalAlign="Left" />
                            <PagerSettings Position="TopAndBottom" />
Question by:kellyclu
    LVL 8

    Assisted Solution

    by:Bradley Haynes
    LVL 26

    Accepted Solution


    Featured Post

    What Should I Do With This Threat Intelligence?

    Are you wondering if you actually need threat intelligence? The answer is yes. We explain the basics for creating useful threat intelligence.

    Join & Write a Comment

    I have developed many web applications with asp & and to add and use a dropdownlist was always a very simple task, but with the new, setting the value is a bit tricky and its not similar to the old traditional method. So in this a…
    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…
    Migrating to Microsoft Office 365 is becoming increasingly popular for organizations both large and small. If you have made the leap to Microsoft’s cloud platform, you know that you will need to create a corporate email signature for your Office 365…
    Sending a Secure fax is easy with eFax Corporate ( First, Just open a new email message.  In the To field, type your recipient's fax number You can even send a secure international fax — just include t…

    729 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

    19 Experts available now in Live!

    Get 1:1 Help Now