Wrox Programmer Forums
Go Back   Wrox Programmer Forums > .NET > Other .NET > General .NET
|
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 software programmers and website developers including Wrox book authors and readers. New member registration was closed in 2019. New posts were shut off and the site was archived into this static format as of October 1, 2020. If you require technical support for a Wrox book please contact http://hub.wiley.com
 
Old July 30th, 2004, 03:08 PM
Authorized User
 
Join Date: Jul 2004
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

 
Old July 30th, 2004, 09:56 PM
planoie's Avatar
Friend of Wrox
 
Join Date: Aug 2003
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.





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





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