Wrox Programmer Forums
Go Back   Wrox Programmer Forums > ASP.NET and ASP > ASP.NET 2.0 > ASP.NET 2.0 Professional
| Search | Today's Posts | Mark Forums Read
ASP.NET 2.0 Professional If you are an experienced ASP.NET programmer, this is the forum for your 2.0 questions. Please also see the Visual Web Developer 2005 forum.
Welcome to the p2p.wrox.com Forums.

You are currently viewing the ASP.NET 2.0 Professional section of the Wrox Programmer to Programmer discussions. This is a community of software programmers and website developers including Wrox book authors and readers. New member registration was closed in 2019. New posts were shut off and the site was archived into this static format as of October 1, 2020. If you require technical support for a Wrox book please contact http://hub.wiley.com
 
Old October 9th, 2007, 04:17 PM
Authorized User
 
Join Date: Jun 2007
Location: , , .
Posts: 32
Thanks: 0
Thanked 0 Times in 0 Posts
Default 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.
 
Old October 10th, 2007, 11:13 AM
Authorized User
 
Join Date: Jun 2005
Location: Nashville, TN, USA.
Posts: 17
Thanks: 0
Thanked 0 Times in 0 Posts
Send a message via MSN to Jayahar Send a message via Yahoo to Jayahar
Default

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.
 
Old March 8th, 2010, 08:14 AM
Authorized User
 
Join Date: Jan 2010
Posts: 22
Thanks: 0
Thanked 0 Times in 0 Posts
Send a message via Yahoo to elizas
Default 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.
__________________
Cheers,
Eliza

Mindfire: India's Only Company to be both Apple Premier & Microsoft Gold certified.




Similar Threads
Thread Thread Starter Forum Replies Last Post
How to add vertical scroll bar and fixed heading aarunlal ASP.NET 2.0 Professional 3 May 24th, 2007 01:46 AM
how to add scroll bars in asp.net listbox control DARSIN General .NET 3 January 26th, 2006 11:39 PM
How to control scroll bar BurhanKhan Javascript 3 August 26th, 2004 02:31 PM
Scroll Bar cooldude87801 BOOK: Beginning Java 2 0 June 18th, 2003 11:59 AM





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