>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.