Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Grid Refreshing from a toolbar.
Message
 
To
21/04/1997 10:34:51
Andrew Gray
Petrolink Services Ltd
Aberdeen, United Kingdom
General information
Forum:
Visual FoxPro
Category:
Classes - VCX
Miscellaneous
Thread ID:
00029070
Message ID:
00029199
Views:
27
>This should be a fairly straight forward scenario... HA.
>
>I have a one-to-many form with a pageframe. One of the pages is a grid control showing the many info, the 'one' info is all on other pages. Navigation is via a generic toolbar which skips in the parent table and then issues a Form.Refresh().
>With the navbuttons on the form it works fine. With any other control other the the grid active it works fine. But if a control in the grid has focus when I click on my 'Next' button, the grid does not refresh! the parent table is looking at the next record, the child one is not! Clicking on a different page and then back on the grid one updates it fine but isn't really whatr I am looking for. Is there a KeepLockedOnTheOriginalRecordComeWhatMay property that I can't find? What am I missing ?

Andrew, I've been banging my head on a similar grid problem, and finally found that I needed to do the grid-refresh with the PARENT table selected. Didn't matter that the parent table was on the correct record before the refresh() was called, it had to be selected. I just put it into my page-refresh: Select parent, refresh page (or in one case grid), select child ........

HTH
Barbara
Barbara Paltiel, Paltiel Inc.
Previous
Reply
Map
View

Click here to load this message in the networking platform