Wrox Programmer Forums
|
ASP.NET 1.x and 2.0 Application Design Application design with ASP.NET 1.0, 1.1, and 2.0.
Welcome to the p2p.wrox.com Forums.

You are currently viewing the ASP.NET 1.x and 2.0 Application Design 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 April 17th, 2004, 08:22 AM
Authorized User
 
Join Date: Apr 2004
Posts: 10
Thanks: 0
Thanked 0 Times in 0 Posts
Default Spacing between datagrids

Hi,

Quick question - well i hope!

I have extracted sets of data into two datagrids onto a webpage. Now I want to position the datagrids one above the other so that the space between them is always constant. Due to the dynamic nature of the data, the data returned is different and thus the number of rows returned is different (caused by users selection on previous page).

Therefore the spacing between the grids is always different, sometimes there is a large gap and sometimes a small gap. I suppose unless i knew the exact number of rows returned the datagrids could overlap onto each other for large datasets. Is there any way to autospace between datagrids and thus prevent this overlapping??

Thanks in advance, Luke



Yeeeeeha cowboy!
__________________
Yeeeeeha cowboy!
 
Old April 19th, 2004, 07:17 AM
Friend of Wrox
 
Join Date: Jun 2003
Posts: 1,110
Thanks: 0
Thanked 3 Times in 3 Posts
Default

datagrid1
<br>
datagrid2

 
Old April 19th, 2004, 09:06 AM
Friend of Wrox
 
Join Date: Nov 2003
Posts: 1,348
Thanks: 0
Thanked 5 Times in 5 Posts
Default

Change the page layout from GridLayout to FlowLayout. Then the grids will always be spaced like you want.

 
Old April 19th, 2004, 09:11 AM
planoie's Avatar
Friend of Wrox
 
Join Date: Aug 2003
Posts: 5,407
Thanks: 0
Thanked 16 Times in 16 Posts
Default

It sounds like you have a form that is using grid layout. Change it to flow layout and the grids will be spaced apart be whatever is between them in the HTML.

<rant>
Whoever it was at Microsoft who felt that visual studio should default web forms to use grid layout, or for that matter that ASP.net should even SUPPORT grid layout, obviously never built a dynamic web application.
</rant>

Peter
-------------------------
Work smarter, not harder





Similar Threads
Thread Thread Starter Forum Replies Last Post
SPACING PROBLEM jhanny007 PHP Databases 7 December 19th, 2006 07:07 AM
spacing in between the words ramank Classic ASP Basics 1 November 20th, 2006 07:25 AM
PROBLEM SPACING jhanny007 Beginning PHP 2 November 16th, 2006 09:46 AM
Line spacing Stevie Dreamweaver (all versions) 3 May 16th, 2005 11:58 AM





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