Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
How to ensure selected row always appears at top of grid
Message
De
29/09/2000 13:57:27
Walter Meester
HoogkarspelPays-Bas
 
 
Information générale
Forum:
Visual FoxPro
Catégorie:
Gestionnaire d'écran & Écrans
Divers
Thread ID:
00422580
Message ID:
00422746
Vues:
63
Nadya,

>>I will try out both yours and Cetin's methods and put both of them in the FAQs
>>>
>>>thisform.lockscreen=.t.
>>>with this
>>>     nHeight = .height
>>>     .height = .headerheight + .rowheight
>>>     .refresh
>>>     .height=nHeight
>>>endwith
>>>thisform.lockscreen=.f.
>
>Let me know, how it will go, please. Also, this is not my method, I borrowed it from UT while ago. Unfortunately, I can not remember, from who...

Hmmm, this code looks familiar..... ;-), though IMO the following is better (put it in the refresh event):
THISFORM.LockScreen=.t.
nHeight=THIS.Height
THIS.Height=THIS.HeaderHeight+THIS.RowHeight
DODEFAULT()
THIS.Height = nHeight
THISFORM.LockScreen=.f.
The biggest advantage of this method is that you don't have to set the focus to the grid. A simple THISFORM.Refresh will do.

Walter,
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform