Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Grid has me stumped yet again
Message
General information
Forum:
Visual FoxPro
Category:
Forms & Form designer
Environment versions
Visual FoxPro:
VFP 9 SP2
OS:
Windows 7
Database:
Visual FoxPro
Application:
Desktop
Miscellaneous
Thread ID:
01503112
Message ID:
01503114
Views:
94
Did you issue Grid.Refresh() after updating data?

>I have designed a form that contains a tabless page frame. Page 1 has an embedded browser control and page 2 has a grid whose record source is tied to a cursor alias at design time.
>
>On form load, I create the empty grid cursor and upon the show of the form, the grid shows the data perfectly. If I click on a control on the bottom of the form, then page 1 becomes active and displays content. When I click on a different button, I execute code to refresh the cursor (zap, followed by insert into ... select) and then make page 2 active. The problem I'm running into is that the grid is completely empty. It's not because of the cursor, because if I suspend, the cursor exists and contains data.
>
>I know it's related to the refresh of the cursor, but can't figure out why the grid doesn't show any data.
>
>Any ideas would be greatly appreciated.
--sb--
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform