Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Child Grid
Message
From
08/05/2001 20:39:07
 
 
To
08/05/2001 06:30:09
Cetin Basoz
Engineerica Inc.
Izmir, Turkey
General information
Forum:
Visual FoxPro
Category:
Troubleshooting
Title:
Miscellaneous
Thread ID:
00504582
Message ID:
00505073
Views:
22
>>I have a grid in a page in a pageframe for which the recordsource is a table containing child records of the main table. ( eg invoice items)
>>Now when I change the record of the master table the grid re-displays nicely in every circumstance EXCEPT where the grid has the focus in which case the grid display doesn't change.
>>If I change the focus to the page caption before moving the master record pointer it works of course, but this seems such a kludge - is there a simpler way?
>>
>>TIA
>
>David,
>Could you give some more info to reproduce the behaviour ?
>Subclassed grid with some code preventing it ?
>If you change master record pointer from within child grid all you need might be :
>
*pointer moving code
>select myParent
>thisform.refresh
>Cetin


I can simplify it down to an essential - if the code moving the record pointer in the parent object run without removing focus from the child grid then the child grid is not refreshed properly. If the child grid does not have the focus at the time, then everything behaves normally.

I have a very simple form and data tables that I can send you based on VFP native classes which demonstrates the effect. I'll only send if you request it.
Previous
Reply
Map
View

Click here to load this message in the networking platform