Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Make grid scroll up?
Message
From
01/10/1999 20:25:46
 
General information
Forum:
Visual FoxPro
Category:
Forms & Form designer
Miscellaneous
Thread ID:
00240854
Message ID:
00271831
Views:
23
>>When I seek a record in my cursor and open my grid, the grid has scrolled down so that the selected (current) record is at the top of the grid - even if it's the last record in a group of 2 or three!
>>
>>How can I scroll the grid to the top (or at least up a page) without changing the currently selected record?
>>
>>TIA
>
>As long as the grid has focus, the following works for me:
>with ThisForm
>   .LockScreen = .t.
>   with .Gridname
>      do while .RelativeRow > 1
>         .DoScroll(1)
>      enddo
>   endwith
>   .LockScreen = .f.
>endwith
If you added a

.SetFocus()

before the Do While, would this work every time?
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform