Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
How do I set the focus to a particular row in a grid?
Message
De
02/06/2003 18:06:59
 
 
Information générale
Forum:
Visual FoxPro
Catégorie:
Gestionnaire d'écran & Écrans
Divers
Thread ID:
00795438
Message ID:
00795443
Vues:
18
This message has been marked as the solution to the initial question of the thread.
Hi Eddie.

I would like to place code in the click method of the command buttons
to set the focus back to the row that the user was on before he hit the command button.


Unless something has changed the position of the record pointer in the grid's RecordSOurce, you get this behavior for free - no code required - just by setting focus to the grid.

You do not want to be messing around with the grid's ActiveRow porperty because it is painfully slow. If something is changing the record pointer, just save the record number somewhere and go back to the record before setting focus to the grid.
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform