Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Grid positioning
Message
From
23/08/2012 13:59:50
 
 
To
23/08/2012 13:49:36
General information
Forum:
Visual FoxPro
Category:
Coding, syntax & commands
Environment versions
Visual FoxPro:
VFP 9 SP2
Miscellaneous
Thread ID:
01551212
Message ID:
01551217
Views:
51
>>Hi All,
>>
>>I set a grid recordsource to a cursor. The grid can show 9 lines max (for example). Initially I want to show the grid with the last cursor record in the center line position. How can that be done?
>
>If I remember correctly:
>yourform.lockscreen=.F.
>go bottom in curgrid
>local lnOldHeight
>lnOldHeight = yourgrid.height
>yourgrid.height = 15 && You may need to check another value
>yourgrid.height = lnOldHeight
>yourform.lockscreen=.F.
Thanks but doesnt seem to work for me. Stepped through it and the last cursor record still appears as the first row when the grid resizes.
In the End, we will remember not the words of our enemies, but the silence of our friends - Martin Luther King, Jr.
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform