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 13:34:54
 
 
To
27/10/1997 13:03:05
Jim Si
Alberta Research Council
Calgary, Alberta, Canada
General information
Forum:
Visual FoxPro
Category:
Forms & Form designer
Miscellaneous
Thread ID:
00056816
Message ID:
00056840
Views:
33
>>
>>did you explicitly reset the datasource?
>>
>>(thisform.mygrid1.recordsource = 'mytable')
>>
>>often (especially when the grid resides on a pageframe and the page becomes temporarily deactivated), the grid forgets its datasource, and must reminded.
>
>Hi Erik,
>
>This is my problem. I have a pageframe on my form. After I did the following commands it works.
>
>ThisForm.Pgf1.Page1.Mygrid.RecordSource = ThisForm.Pgf1.Page1.Mygrid.RecordSource
>
>Thank you very much.
>
>Jim S

A better place to put the code is in the activate event of that page. This way you know that whenever the page is active, the grid always has the correct data in it, and you don't have to remember to set the recordsource from wherever you make updates to the table. Glad I could help.
Erik Moore
Clientelligence
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform