p2p.wrox.com Forums

p2p.wrox.com Forums (http://p2p.wrox.com/index.php)
-   ASP.NET 2.0 Professional (http://p2p.wrox.com/forumdisplay.php?f=215)
-   -   asp.net 2.0 Gridview control vertical scroll bar (http://p2p.wrox.com/showthread.php?t=62759)

kulkarnimonica October 9th, 2007 04:17 PM

asp.net 2.0 Gridview control vertical scroll bar
 
Hi all,
I need to have a vertical scrollbar with Fixed Header in my gridview.

Does anyone know how to implement this.

Jayahar October 10th, 2007 11:13 AM

For getting a vertical scrollbar, you can drop your gridview inside a panel control which has style="OVERFLOW: auto".

And I guess for having a header, you can use a table control with single row, which has <td> width set same as the column width of the gridview.

Jay

Regards,
Jayahar Aruchamy.
Life is all about expecting the unexpected.

elizas March 8th, 2010 08:14 AM

A Scrollable GridView with a Fixed Header in .NET
 
One workaround is to have a separate table control to show the header elements and hide the actual header of the grid.Now put the grid inside a div or panel with scrollbar property.But that takes extra effort to have a proper alignment.Each cell of the header table should be aligned with each cell of the grid.The other work around is to fix the header of the grid in such a way that scrolling down shouldnt hide the header of the grid.Using stylesheet we can achieve that.


All times are GMT -4. The time now is 05:04 AM.

Powered by vBulletin®
Copyright ©2000 - 2020, Jelsoft Enterprises Ltd.
© 2013 John Wiley & Sons, Inc.