Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
How to keep grid records in order as key field is change
Message
De
24/01/2005 17:53:11
Dragan Nedeljkovich
Now officially retired
Zrenjanin, Serbia
 
 
À
23/01/2005 21:00:05
Information générale
Forum:
Visual FoxPro
Catégorie:
Gestionnaire d'écran & Écrans
Divers
Thread ID:
00979904
Message ID:
00980227
Vues:
38
>Hi,
>
>A grid shows rows of an ordered table. As new records are added they show at the top of the grid, as they should. When the key field is changed I'd like the current record to show in the appropriate relative position in the grid at about the middle visible row of the grid. How do you accomplish that?

My regular trick to get the grid in order when the order of records changes is to GO to whichever record I want, lockscreen the form, refresh the grid, setfocus to anything else on the form, set focus back to grid, lockscreen off.

As for putting your record to the middle, grid.doscroll(0) about rowcount/2 times.

back to same old

the first online autobiography, unfinished by design
What, me reckless? I'm full of recks!
Balkans, eh? Count them.
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform