Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Preserving visual position of current record after updates
Message
De
09/05/2006 10:38:13
 
 
À
Tous
Information générale
Forum:
Visual FoxPro
Catégorie:
Gestionnaire d'écran & Écrans
Titre:
Preserving visual position of current record after updates
Versions des environnements
Visual FoxPro:
VFP 9 SP1
Divers
Thread ID:
01120344
Message ID:
01120344
Vues:
66
Is there a best practice technique for preserving the visual POSITION of the current record in a grid after the grid's record source has been updated with a a fresh set of records.

For example, if the current record in a grid is displayed in visual row 4 of 10 rows and I update the grid's record source, how do I make sure that the current record remains in visual row 4 after the refresh. (This assumes that the current record remains in the record set and that each record has a primary key to seek on)

I'm thinking that I need to use some combination of ActiveRow, RelativeRow and possibly the DoScroll() to fine the visual position.

Any thoughts on doing this in a generic manner?

Thanks,
Malcolm
Malcolm Greene
Brooks-Durham
mgreene@bdurham.com
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform