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

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

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.

thanks

<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" />
                        </asp:GridView>
0
kellyclu
Asked:
kellyclu
2 Solutions
 
Bradley HaynesCommented:
0
 
RejojohnyCommented:
0
Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.

Join & Write a Comment

Featured Post

Upgrade your Question Security!

Your question, your audience. Choose who sees your identity—and your question—with question security.

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