Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Appending Records in Grid and Setfocus()
Message
De
16/02/1999 15:20:38
Rene De Montbrun
Customer Contact Inc.
Toronto, Ontario, Canada
 
 
À
16/02/1999 14:28:07
Nancy Folsom
Pixel Dust Industries
Washington, États-Unis
Information générale
Forum:
Visual FoxPro
Catégorie:
Gestionnaire d'écran & Écrans
Divers
Thread ID:
00187925
Message ID:
00188104
Vues:
26
>>>>Does anyone know how to set focus to a record that you append to a grid? I am using an Add button with APPEND BLANK and then myGrid.Setfocus().
>
>I usually just do an append blank and then setfocus to the grid, and I'm on the blank record. For a simple example:
>
>
append blank
>_screen.forms(1).grid1.setfocus()
>
>took me to the bottom of the grid (and the blank record).
>Is there something in how your tables are related that's complicating things?

Hi Nancy,

I have my tables and relations defined in the database container. When I add the tables to the data environment of the form, the relations are set automatically. They appear to be OK. My form is one-many-many and the relations and refreshes are working great. The only thing that does not seem to behave is the focus not being on the appended record in the grid. Any other suggestions would be appreciated.

Mystified in Toronto
Rene de Montbrun
Toronto
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform