Go Back  Xtreme Visual Basic Talk > Visual Basic .NET (2002/2003/2005/2008, including Express editions) > .NET General > asp.net webform dynamic datagrid

Thread Tools Display Modes
Old 12-19-2003, 09:19 PM
michelle_chall michelle_chall is offline
Join Date: Dec 2003
Posts: 3
Default asp.net webform dynamic datagrid

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??
Reply With Quote
Old 12-20-2003, 11:00 AM
Robby's Avatar
Robby Robby is offline
Code Factory

Retired Moderator
* Expert *
Join Date: Jan 2001
Location: Montreal, Ca.
Posts: 5,565

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 ........>
Visit...Bassic Software
Reply With Quote
Old 12-20-2003, 11:13 AM
Optikal's Avatar
Optikal Optikal is offline

Retired Leader
* Guru *
Join Date: Oct 2002
Location: Winnipeg, MB, Canada
Posts: 4,543

you can try changing the pageLayout property of the WebForm to FlowLayout
There are 10 types of people in this world, those that understand binary, and those that don't.
Reply With Quote
Old 12-20-2003, 02:21 PM
michelle_chall michelle_chall is offline
Join Date: Dec 2003
Posts: 3
Default thanks

many thanks, i knew it would be something simple but i have been searching for days. embarassed but appreciated...
Reply With Quote

Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
Datagrid row contents not visible? DTFan Database and Reporting 2 11-25-2003 04:08 PM
Empty datagrid update error gallierz Database and Reporting 2 07-20-2003 11:35 PM
setting child/master datagrid and inputing data to a datagrid from a text box?? TheOneWhoWas Database and Reporting 0 04-28-2003 11:53 PM
using arrays as a datasource for datagrid mcm Database and Reporting 4 01-18-2003 11:25 AM
Visual Basic 6 Datagrid Cursor Scrolling talonbow Database and Reporting 0 08-27-2002 08:47 AM


Free Publications
The ASP.NET 2.0 Anthology
101 Essential Tips, Tricks & Hacks - Free 156 Page Preview. Learn the most practical features and best approaches for ASP.NET.
Programmers Heaven C# School Book -Free 338 Page eBook
The Programmers Heaven C# School book covers the .NET framework and the C# language.
Build Your Own ASP.NET 3.5 Web Site Using C# & VB, 3rd Edition - Free 219 Page Preview!
This comprehensive step-by-step guide will help get your database-driven ASP.NET web site up and running in no time..