473,320 Members | 1,859 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,320 software developers and data experts.

layout problem: aligning several datagrids vertically

hi all,

i am a newbie in ASP.NET and i couldn't find the solution to this one:

i have a form with three datagrids on it. i would like to align them
vertically with a space between each grid of about 20px. the amount of
rows in those grids is changing, but the position of each datagrid
seems to be fixed. this results in a grid overlaying another one or the
space between two grids is way too high.

how can i change this? i would love to put each grid dynamically 20px
below the predecessor grid, no matter how many rows are in there.

is there a solution to this one?

cheers, mark

Mar 2 '06 #1
3 1963
Use FlowLayout.

Eliyahu

"Mark Wiewel" <wi****@gmail.com> wrote in message
news:11**********************@i40g2000cwc.googlegr oups.com...
hi all,

i am a newbie in ASP.NET and i couldn't find the solution to this one:

i have a form with three datagrids on it. i would like to align them
vertically with a space between each grid of about 20px. the amount of
rows in those grids is changing, but the position of each datagrid
seems to be fixed. this results in a grid overlaying another one or the
space between two grids is way too high.

how can i change this? i would love to put each grid dynamically 20px
below the predecessor grid, no matter how many rows are in there.

is there a solution to this one?

cheers, mark

Mar 2 '06 #2
DWS
Mark,

Three ideas for you. I like this first one best cause it adds a visual
element that you can set to your liking and is easy add a line between
datagrids
Make sure your are in flow layout. Put a horizontal rule line after each
datagrid.
<hr />

add linebreaks between datagrids
Make sure you are in flow layout. Put two line breaks after each datagrid
<br /><br /> .

A more complex solution put your data grids inside a table. I'm guessing on
the 20px row play around with this a little bit.

<table>
<tr><td><datagrid></td></tr>
<tr><td height=20> </td></tr>
<tr><td><datagrid1></td></tr>
<tr><td height=20> </td></tr>
<tr><td><datagrid2></td></tr>
<tr><td height=20> </td></tr>
<tr><td><datagrid3></td></tr>
<tr><td height=20> </td></tr>
<tr><td><datagrid4></td></tr>
</table>

Good Luck
DWS
"Mark Wiewel" wrote:
hi all,

i am a newbie in ASP.NET and i couldn't find the solution to this one:

i have a form with three datagrids on it. i would like to align them
vertically with a space between each grid of about 20px. the amount of
rows in those grids is changing, but the position of each datagrid
seems to be fixed. this results in a grid overlaying another one or the
space between two grids is way too high.

how can i change this? i would love to put each grid dynamically 20px
below the predecessor grid, no matter how many rows are in there.

is there a solution to this one?

cheers, mark

Mar 2 '06 #3
Thanks a lot for your help. I switched to flow layout and decided to
put the datagrids into relative-positioned DIVs. The problem was:
switching to flow layout doesn't remove the positioning rules in the
datagrid-tag. I had to remove them manually.

They are aligning now perfectly the way I wanted.

Cheers, Mark

Mar 8 '06 #4

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

4
by: Rookie | last post by:
I need to display several columns of numbers in a textbox. I wish to display the columns with the decimal point position aligned vertically. I have found that the # digit placeholders do not...
5
by: Wilhelm Kutting | last post by:
Hi i want to use the following layout: ----------------- | | | | Text line 1 | | | Text line 2 | image.jpg | | ... | | | | | |
22
by: Jam Pa | last post by:
Once again my big mouth has landed me with a tough job. I have a static CSS layout, where each and every element has been defined by pixel size - lots of them, too! Mostly relative elements,...
15
by: Tamblyne | last post by:
This problem has got to have a simple solution and I can't be the first person who has ever handled it. Perhaps Google is no help because I'm not using the right terms? (I did find one post...
5
by: Kat | last post by:
Hi, I'm trying to set up an asp.net page using flow layout so I'm putting all my controls into a table grid, etc. I use several radiobuttonlists and datagrids that are generated from datasource....
4
by: greg.mckone | last post by:
Hi folks, I've been using CSS for style for several years now, but I've never attempted a layout using CSS. (I'd like to move away from tables) I'm working on a page here:...
0
by: jonefer | last post by:
I have a page that displays patient information. The problem is, that I have a table that auto-expands vertically for several datagrids: Benefits Allergies Problem Lists Medication ---(well...
3
by: Ted Hopp | last post by:
This one's a wrinkle on the usual 3-column layout problem. I need to have fixed-width left and right side rails and a fluid center area, with a header and a footer that go across all three. As...
1
by: nicky77 | last post by:
hi there, i'm pretty inexperienced with CSS, so apologies for the shoddy coding. i'm trying to set a 3 column layout using different background images for each column. however, i have whitespace at...
0
isladogs
by: isladogs | last post by:
The next Access Europe meeting will be on Wednesday 6 Mar 2024 starting at 18:00 UK time (6PM UTC) and finishing at about 19:15 (7.15PM). In this month's session, we are pleased to welcome back...
1
isladogs
by: isladogs | last post by:
The next Access Europe meeting will be on Wednesday 6 Mar 2024 starting at 18:00 UK time (6PM UTC) and finishing at about 19:15 (7.15PM). In this month's session, we are pleased to welcome back...
0
by: jfyes | last post by:
As a hardware engineer, after seeing that CEIWEI recently released a new tool for Modbus RTU Over TCP/UDP filtering and monitoring, I actively went to its official website to take a look. It turned...
0
by: ArrayDB | last post by:
The error message I've encountered is; ERROR:root:Error generating model response: exception: access violation writing 0x0000000000005140, which seems to be indicative of an access violation...
0
by: Defcon1945 | last post by:
I'm trying to learn Python using Pycharm but import shutil doesn't work
1
by: Shællîpôpï 09 | last post by:
If u are using a keypad phone, how do u turn on JavaScript, to access features like WhatsApp, Facebook, Instagram....
0
by: af34tf | last post by:
Hi Guys, I have a domain whose name is BytesLimited.com, and I want to sell it. Does anyone know about platforms that allow me to list my domain in auction for free. Thank you
0
by: Faith0G | last post by:
I am starting a new it consulting business and it's been a while since I setup a new website. Is wordpress still the best web based software for hosting a 5 page website? The webpages will be...
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 3 Apr 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome former...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.