?
Solved

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
2
Medium Priority
?
1,126 Views
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.

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
Comment
Question by:kellyclu
2 Comments
 
LVL 8

Assisted Solution

by:Bradley Haynes
Bradley Haynes earned 800 total points
ID: 19994443
0
 
LVL 26

Accepted Solution

by:
Rejojohny earned 1200 total points
ID: 19994586
0

Featured Post

Industry Leaders: We Want Your Opinion!

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

One of the pain points with developing AJAX, JavaScript, JQuery, and other client-side behaviors is that JavaScript doesn’t allow for cross domain request for pulling content. For example, JavaScript code on www.johnchapman.name could not pull conte…
Today is the age of broadband.  More and more people are going this route determined to experience the web and it’s multitude of services as quickly and painlessly as possible. Coupled with the move to broadband, people are experiencing the web via …
This Micro Tutorial will teach you how to add a cinematic look to any film or video out there. There are very few simple steps that you will follow to do so. This will be demonstrated using Adobe Premiere Pro CS6.
Whether it be Exchange Server Crash Issues, Dirty Shutdown Errors or Failed to mount error, Stellar Phoenix Mailbox Exchange Recovery has always got your back. With the help of its easy to understand user interface and 3 simple steps recovery proced…
Suggested Courses
Course of the Month14 days, 15 hours left to enroll

840 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