Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Make grid scroll up?
Message
 
 
Information générale
Forum:
Visual FoxPro
Catégorie:
Gestionnaire d'écran & Écrans
Divers
Thread ID:
00240854
Message ID:
00272287
Vues:
21
>>>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?

Yes, that is in fact what I have. I was typing that from memory at the time.
Mark McCasland
Midlothian, TX USA
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform