We help IT Professionals succeed at work.

New podcast episode! Our very own Community Manager, Rob Jurd, gives his insight on the value of an online community. Listen Now!

x

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

kellyclu
kellyclu asked
on
1,159 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>
Comment
Watch Question

Unlock this solution and get a sample of our free trial.
(No credit card required)
UNLOCK SOLUTION
Unlock this solution and get a sample of our free trial.
(No credit card required)
UNLOCK SOLUTION
Unlock the solution to this question.
Thanks for using Experts Exchange.

Please provide your email to receive a sample view!

*This site is protected by reCAPTCHA and the Google Privacy Policy and Terms of Service apply.

OR

Please enter a first name

Please enter a last name

8+ characters (letters, numbers, and a symbol)

By clicking, you agree to the Terms of Use and Privacy Policy.