Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Grid not showing records.
Message
From
23/09/2004 17:16:37
 
 
To
23/09/2004 16:55:09
General information
Forum:
Visual FoxPro
Category:
Forms & Form designer
Miscellaneous
Thread ID:
00945527
Message ID:
00945536
Views:
20
>I have a form with a pageframe, and on Page1, a command button adds a handful of records to a view cursor. A grid on Page2 is controlsourced to the view cursor. Switching to Page2 shows me an empty grid, but several textboxes controlsourced to view fields show the correct value. An Add button on Page 2 adds a record, but the grid still shows empty, the textboxes are writing their values back to the cursor (open in a browse behind the form when debugging).
>
>Obviously, I thought it was missing grid.Refresh(), but Page2.Activate, the Add button, and the LostFocus of each textbox ALL have grid.Refresh() calls. It's not Lockscreen either, as the textboxes update, and I can switch pages easily.
>
>I've doublechecked the controlsource to be sure it's right. The view is Optimistic Table Buffered, and parameterized, but the correct parameter is added to the new records.
>
>So why can't I see them?

If you're creating your Grid's RecordSource after the grid.Init, you need to blank the Grid.RecordSource, get your data in place, and then reset the Grid.RecordSource to the alias.
Fred
Microsoft Visual FoxPro MVP

foxcentral.net
Previous
Reply
Map
View

Click here to load this message in the networking platform