Welcome To The Home Of The Visual FoxPro Experts  
home. signup. forum. archives. search. google. articles. downloads. faq. members. weblogs. sponsors. rss.
 From: Stefan Wuebbe
  Where is Stefan Wuebbe?
 Hamburg
 Germany
 Stefan Wuebbe
 To: Russell Hill
  Where is Russell Hill?
 Sydney
 Australia
 Russell Hill
 Tags
Subject: RE: Grid height
Thread ID: 233725 Message ID: 233726 # Views: 55 # Ratings: 1
Version: Visual FoxPro 9 Category: General VFP Topics
Date: Monday, July 06, 2009 11:57:13 AM         
   


> Hi all,
>
> I have written some code in the Click of a Button which uses an SQL SELECT to populate a Grid on a "pop-up form".
>
> The value of _TALLY can range from 0 to 30 and I would like to programatically adjust the height of both the Grid and the Form based on this value.
>
> How do I know what the height of the Grid should be in order to "fit" the number of items in the query result?
>
Hi Russell -

Your desired grid.Height would probably the number of rows * grid.RowHeight + SysMetric(8) + grid.HeaderHeight


hth
-Stefan



COMPLETE THREAD
Grid height Posted by Russell Hill @ 7/6/2009 11:48:31 AM
RE: Grid height Posted by Stefan Wuebbe @ 7/6/2009 11:57:13 AM
RE: Grid height Posted by Russell Hill @ 7/6/2009 2:13:15 PM
RE: Grid height Posted by Stefan Wuebbe @ 7/6/2009 2:28:16 PM
RE: Grid height Posted by Russell Hill @ 7/7/2009 5:40:07 AM
RE: Grid height Posted by Anders Altberg @ 7/6/2009 1:35:13 PM
RE: Grid height Posted by Russell Hill @ 7/6/2009 2:05:25 PM
RE: Grid height Posted by Anders Altberg @ 7/6/2009 8:59:22 PM
RE: Grid height Posted by Russell Hill @ 7/7/2009 5:40:23 AM