Welcome To The Home Of The Visual FoxPro Experts  
home. signup. forum. archives. search. google. articles. downloads. faq. members. weblogs. sponsors. rss.
 From: Russell Hill
  Where is Russell Hill?
 Sydney
 Australia
 Russell Hill
 To: Anders Altberg
  Where is Anders Altberg?
 Uppsala
 Sweden
 Anders Altberg
 Tags
Subject: RE: Grid height
Thread ID: 233725 Message ID: 233740 # Views: 26 # Ratings: 0
Version: Visual FoxPro 9 Category: General VFP Topics
Date: Monday, July 06, 2009 2:05:25 PM         
   


> > 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?
> >
> > Thanks,
> >
> > Russell.
>
>
> By using the Anchor property of the Grid you can make a resizable form where the Grid height (and/or width) is anchored to the height (and width) of the form. The user can make the grid any size that fits his screen by pulling any side of the form.
>
> -Anders

Thanks Anders. Nice one.



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