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


Reply
 
Thread Tools Display Modes
  #1  
Old 12-19-2003, 08:19 PM
michelle_chall michelle_chall is offline
Newcomer
 
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
  #2  
Old 12-20-2003, 10:00 AM
Robby's Avatar
Robby Robby is offline
Code Factory

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

Place your datagrid between DIV tags and use the Height property to limit the height of the grid.

Code:
<div style="OVERFLOW:auto; WIDTH:100%; HEIGHT:250px">
    <asp:datagrid ........>
</div>
__________________
Visit...Bassic Software
Reply With Quote
  #3  
Old 12-20-2003, 10:13 AM
Optikal's Avatar
Optikal Optikal is offline
Codeaholic

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

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
  #4  
Old 12-20-2003, 01:21 PM
michelle_chall michelle_chall is offline
Newcomer
 
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
Reply


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 03: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 10:25 AM
Visual Basic 6 Datagrid Cursor Scrolling talonbow Database and Reporting 0 08-27-2002 08:47 AM

Advertisement:





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.
subscribe
Programmers Heaven C# School Book -Free 338 Page eBook
The Programmers Heaven C# School book covers the .NET framework and the C# language.
subscribe
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..
subscribe
 
 
-->