views:

289

answers:

1

I have a gridview and for client side sorting i am using the Jquery tablesorter plugin. Now i want the header and footer of the grid to be fixed and the rows to be scrolled.

Can anybody help me out?

Thanks in advance...

A: 

You can create three divs header content footer
where header can have the column names and fixed height and same styling with footer, in the content div give a bigger height and put the gridview inside it then add overflow = auto , here you can scroll the gridview in the content div while maintaining the header and footer

<div id="header">Columns</div>
<div id="content">GridView</div>
<div id="footer">Footer</div>
Kronass
is there any JQuery plugin which does both fixed header and soring?
BABA
You can simply google it, I found this http://plugins.jquery.com/project/fixedtableheader, I found good results with "fixed table headers in jQuery" search keyword.
Kronass