asp.net webform dynamic datagrid

michelle_chall
12-19-2003, 08:19 PM
this problem sounds so stupid & simple i fear it's an embrassment to have to put it up!! i'm new to web design, i have a webform which has a datagrid control populated from a database. foregoing paging, when i tried to put a command button below the datagrid the absolute position is tagged & on run it appears slap bang in the middle of my datagrid which has 50 rows.

how do i make the command button appear at the end of the datagrid output without using paging to conserve web space??

Robby
12-20-2003, 10:00 AM
Place your datagrid between DIV tags and use the Height property to limit the height of the grid.


<div style="OVERFLOW:auto; WIDTH:100%; HEIGHT:250px">
<asp:datagrid ........>
</div>

Optikal
12-20-2003, 10:13 AM
you can try changing the pageLayout property of the WebForm to FlowLayout

michelle_chall
12-20-2003, 01:21 PM
many thanks, i knew it would be something simple but i have been searching for days. embarassed but appreciated...

EZ Archive Ads Plugin for vBulletin Copyright 2006 Computer Help Forum