> > 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
Beautiful Stefan - that works well. I'll keep SYSMETRIC in mind in similar situations.
COMPLETE THREAD
|  | | Grid height Posted by Russell Hill @ 7/6/2009 11:48:31 AM |
|