grids not showing child data

grids not showing child data

Post by Wolfgang G » Thu, 15 Jul 2004 12:12:01

On the first page of a pageframe I have the main table and on the other
pages I have the child tables on grids.
If I move the recordpointer on the main table (on the first page), and than
change to another page, the grids are not getting updated and are empty.
What can I do to get the grids showing the child data?

I tried all sort of things, but nothing seems to work. The grids are set to
be read only. But changing this does not work either.

Any help would be appreciated.

grids not showing child data

Post by cmFqYW5 » Thu, 15 Jul 2004 13:27:03

did u try thisform.refresh after changing record pointer on the main table



grids not showing child data

Post by Stefan Wue » Thu, 15 Jul 2004 15:40:02

Invisible pageframe.pages don't get refreshed automatically.
Try "This.Refresh()" in pageX.Activate() or in the .UIEnable()
event of the grid.
If that does not help, do the grids work when you put them
outside the pageframe?


"Wolfgang Greger" < XXXX@XXXXX.COM > schrieb

grids not showing child data

Post by Wolfgang G » Thu, 15 Jul 2004 16:15:25

Hi Rajani,
Yes, of course, among many other things I also tried refresh:

Setfocus (same as above)
Goto Recno()
Skip1, Skip-1

The Skip I tried because if I click on the previous and next button on the
form all the child grids are getting synchronised.

But it does not work in the click event of my search button. Perhaps I
should mention that the search button opens a small form with a
autocompletelist where a search item can be selected. After the search form
is closed the first page is showing the correct selected data of the main
table but the grids with the child tables on the other pages are not in

I have a view on page 7 where also items can be selected. In the Deactivate
Event I just put a SEEK to set the recordpointer of the main table and here
it works, all grids are synchronised.

Any Idea?

grids not showing child data

Post by Leem » Thu, 15 Jul 2004 23:35:24

Hi Wolfgang:

I think this might be a reported bug. There is some code to demo the
problem and fix it on Go to, click on the VFP Zone icon, and choose Downloads
icon. In the Summary text box of the query page, search for "Demo &
Workaround for VFP8 Grid Refresh Bug." The ID number is 18476.

I hope this helps.

This posting is provided "AS IS" with no warranties, and confers no rights.

Microsoft FoxPro Technical Support
Lee Mitchell

*-- VFP9 Public Beta Now Available!! --*
Download the VFP9 beta here:

*-- VFP8 HAS ARRIVED!! --*
Read about all the new features of VFP8 here:
Purchase VFP8 here:

Keep an eye on the product lifecycle for Visual FoxPro here: ;[ln];lifeprodv
- VFP5 Mainstream Support retired June 30th, 2003
- VFP6 Mainstream Support retired Sept. 30th, 2003


grids not showing child data

Post by Wolfgang G » Fri, 16 Jul 2004 11:48:01

Hi Lee,
thank you very much for your support,
it seems I got beaten by that bug.
Thanks to your help I found that file at universialthread.