Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Child Grid show none records after adding a new record
Message
De
27/10/1997 11:54:30
 
 
À
27/10/1997 11:43:04
Jim Si
Alberta Research Council
Calgary, Alberta, Canada
Information générale
Forum:
Visual FoxPro
Catégorie:
Gestionnaire d'écran & Écrans
Divers
Thread ID:
00056816
Message ID:
00056824
Vues:
30
>I have a child grid in a form. In the form there are one text box and one command button. When clicking on the command button, the cursor goes to the text for entering the new entry. After entering the data, the data should appear in the child grid. After I do tableupdate and grid refresh, the grid is blanked out even though it has some records before. By the way, I set a relation in the data environment.
>
>Any ideas why this happens?
>
>Jim S

after the data is updated, requery the grid's datasource (if it is a view) and explicitly reset that recordsource:

requery('myview')
thisform.mygrid1.recordsource = 'myview')
thisform.refresh
Erik Moore
Clientelligence
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform