 |
| ASP.NET 1.1 As of 10/6/2005, this forum is locked as part of the reorganization described here: http://p2p.wrox.com/topic.asp?TOPIC_ID=35394. No posts have been deleted. Open ongoing discussions from the last week have been moved to either ASP.NET 1.0 and 1.1 Beginners http://p2p.wrox.com/asp-net-1-0-1-1-basics-60/ or ASP.NET 1.0 and 1.1 Professional. http://p2p.wrox.com/forum.asp?FORUM_ID=50. See my sticky post inside for more. |
Welcome to the p2p.wrox.com Forums.
You are currently viewing the ASP.NET 1.1 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
|
|
|
|

May 17th, 2005, 11:07 AM
|
|
Friend of Wrox
|
|
Join Date: Nov 2003
Posts: 1,348
Thanks: 0
Thanked 5 Times in 5 Posts
|
|
Scrolling DataGrid
Hello all,
I have a datagrid on my page(gridlayout). I would like to make the datagrid scrollable so that it does not display over other controls. Does anyone know if/how this can be done?
Thanks,
Jim
|
|

May 17th, 2005, 12:41 PM
|
 |
Friend of Wrox
|
|
Join Date: Aug 2003
Posts: 5,407
Thanks: 0
Thanked 16 Times in 16 Posts
|
|
You can put the grid inside a div with a specific height and width and with the style "overflow:auto;".
- Peter
|
|

May 17th, 2005, 04:04 PM
|
|
Friend of Wrox
|
|
Join Date: Nov 2003
Posts: 1,348
Thanks: 0
Thanked 5 Times in 5 Posts
|
|
thanks for the reply.. for some reason that did not work.. the div tag showed up weird.. I eventually just added an HTML flow layout panel and added the grid to that.
Thanks again
|
|

May 18th, 2005, 08:44 AM
|
|
Authorized User
|
|
Join Date: May 2005
Posts: 92
Thanks: 0
Thanked 0 Times in 0 Posts
|
|
try the following code in div tag:
<div id="Layer1" style="OVERFLOW: auto; WIDTH: 320px; POSITION: relative; HEIGHT: 120px">
actually the basic criteria to make the datagrid scrollable is :
1) the width specified in the div tag shud be less than the width of datagrid.
2)the height specified in the div tag shud be less than the height of datagrid.
regards,
muskaan.
|
|

May 18th, 2005, 01:51 PM
|
|
Friend of Wrox
|
|
Join Date: Nov 2003
Posts: 1,348
Thanks: 0
Thanked 5 Times in 5 Posts
|
|
thanks muskaan, i tried what you are saying but the div area always showed up in the upper left corner of the page for some reason, not around the datagrid
|
|

May 18th, 2005, 08:54 PM
|
 |
Friend of Wrox
|
|
Join Date: Aug 2003
Posts: 5,407
Thanks: 0
Thanked 16 Times in 16 Posts
|
|
Jim,
You probably don't want relative positioning, just the absolute height and width should do it.
- Peter
|
|

May 19th, 2005, 02:08 PM
|
|
Friend of Wrox
|
|
Join Date: Nov 2003
Posts: 1,348
Thanks: 0
Thanked 5 Times in 5 Posts
|
|
Thanks guys, put I still can't get that working. For some reason when I place the <DIV> in manually in the HTML, it dose not work. I placed a flow layout panel and dropped the dg in there and it works. Not sure what the difference is though.
|
Similar Threads
|
| Thread |
Thread Starter |
Forum |
Replies |
Last Post |
| scrolling |
red_fiesta |
Classic ASP Professional |
5 |
November 2nd, 2006 12:35 PM |
| scrolling |
carro123 |
Javascript How-To |
0 |
June 6th, 2005 12:29 PM |
| scrolling datagrids |
badgolfer |
ASP.NET 1.0 and 1.1 Basics |
2 |
September 16th, 2004 07:36 AM |
| scrolling |
smn2 |
Classic ASP Professional |
1 |
August 28th, 2003 06:57 AM |
| Scrolling |
smn2 |
Classic ASP Basics |
0 |
August 28th, 2003 05:00 AM |
|
 |