>Hello to all...I am a foxpro novice working on my first application. It is a simple application using a pageframe with 2 pages. the first page is
>a data entry screen and the second is a grid containing table data. the first page allows the user to add,edit,delete records and the second page should display the updated info. the problem comes after a deletion/removal of records. when i go to page 2 the page displays a blank grid. i have tried various methods and procedures to try to display the info with no success. the only way it will display the updating info is when i close the form and then reopen. refresh doesn't help. isn't there a simple procedure i can write to do this? any help is appreciated.
Hello David.
Before update on your table/view that is the source for the grid, you should "blank" the RecordSource property and re-assign it after the table is updated. Otherwise the grid looses all it's properties.
ThisForm.PageFrame.Page2.Grid.RecordSource = ''
-- Update table/view code here
ThisForm.PageFrame.Page2.Grid.RecordSource = 'YourTable'
ThisForm.PageFrame.Page2.Grid.Refresh()
Try also gridbuilder on web adress below.
Danijel