Wrox Programmer Forums

Need to download code?

View our list of code downloads.

Go Back   Wrox Programmer Forums > .NET > Other .NET > General .NET
Password Reminder
Register
| FAQ | Members List | Calendar | Search | Today's Posts | Mark Forums Read
General .NET For general discussion of MICROSOFT .NET topics that don't fall within any of the other .NET forum subcategories or .NET language forums.  If your question is specific to a language (C# or Visual Basic) or type of application (Windows Forms or ASP.Net) try an applicable forum category. ** PLEASE BE SPECIFIC WITH YOUR QUESTION ** When posting here, provide details regarding the Microsoft .NET language you are using and/or what type of application (Windows/Web Forms, etc) you are working in, if applicable to the question. This will help others answer the question without having to ask.
Welcome to the p2p.wrox.com Forums.

You are currently viewing the General .NET section of the Wrox Programmer to Programmer discussions. This is a community of tens of thousands of software programmers and website developers including Wrox book authors and readers. As a guest, you can read any forum posting. By joining today you can post your own programming questions, respond to other developers’ questions, and eliminate the ads that are displayed to guests. Registration is fast, simple and absolutely free .
DRM-free e-books 300x50
Reply
 
Thread Tools Search this Thread Display Modes
  #1 (permalink)  
Old July 30th, 2004, 03:08 PM
Authorized User
 
Join Date: Jul 2004
Location: Bellevue, WA, USA.
Posts: 25
Thanks: 0
Thanked 0 Times in 0 Posts
Default A fixed size Datagrid

Hello,

I have one datagrid. The problem is that the datagrid is a different height, depending on the number of rows in the grid. If there are 10 rows, its one size. If its 20, its larger than 10. If only 2, the height is short. How can I keep the datagrid at a fixed height, with various rows counts? Could padding be possible? I am using ASP.Net.

Thanks,

Paul

Reply With Quote
  #2 (permalink)  
Old July 30th, 2004, 09:56 PM
planoie's Avatar
Friend of Wrox
Points: 16,481, Level: 55
Points: 16,481, Level: 55 Points: 16,481, Level: 55 Points: 16,481, Level: 55
Activity: 0%
Activity: 0% Activity: 0% Activity: 0%
 
Join Date: Aug 2003
Location: Clifton Park, New York, USA.
Posts: 5,407
Thanks: 0
Thanked 16 Times in 16 Posts
Default

If the grid has different row counts, it will be different heights. In ASP.NET about the only thing you can do is put the grid inside something that can be explicitly sized, such as a <div> element. Just make sure that the div is big enough to accomodate the largest grid size. Even then, you most likely won't be guarranteed a specific height. HTML is very dynamic.
Reply With Quote
Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search
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
Trackbacks are Off
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Datagrid fixed header Swopna .NET Framework 1.x 1 March 22nd, 2008 11:06 AM
To generate fixed size frames in Crystal Report XI infotech BOOK: Professional Crystal Reports for VS.NET 1 May 14th, 2007 09:03 AM
center text (only) in fixed size div, how to do it beetle_jaipur BOOK: Beginning CSS: Cascading Style Sheets for Web Design ISBN: 978-0-7645-7642-3 1 April 16th, 2007 01:38 PM
Starting a fixed size browser window Loz Javascript How-To 12 April 18th, 2006 10:43 AM
Fixed size table amc Dreamweaver (all versions) 4 August 29th, 2004 07:03 AM



All times are GMT -4. The time now is 11:27 PM.


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