Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Child Grid show none records after adding a new record
Message
From
27/10/1997 11:54:30
 
 
To
27/10/1997 11:43:04
Jim Si
Alberta Research Council
Calgary, Alberta, Canada
General information
Forum:
Visual FoxPro
Category:
Forms & Form designer
Miscellaneous
Thread ID:
00056816
Message ID:
00056824
Views:
25
>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
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform