Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
I need help on forms and grid
Message
Information générale
Forum:
Visual FoxPro
Catégorie:
Gestionnaire d'écran & Écrans
Divers
Thread ID:
00255772
Message ID:
00255957
Vues:
25
Hi Susan.

>> how can i select a certain record from a table displayed in a grid and then have the information from the same record that i just selected to appear on my form <<

If the grid and the other controls are on the same form, and th other form controls are bound to the same table as the grid is, just put

This.Parent.Refresh()

In the AfterRowColChange method.

The form will automatically keep in synch with the grid without using extra key strokess.

Of course, this will fire even if you are only tabbing thru fields of the same record in the grid. So if you like, save the current record number to a custom property of the grid in BeforeRowColChange. Then, in AfterRowColChange, check to see if the custom property = RECNO(). If not, you have changed rows and that is when you need to do your refresh.

Marcia
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform