Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
New user needs help with pages/grids
Message
De
26/10/1998 08:42:20
 
 
À
26/10/1998 08:33:27
David Waters
Sir Arthur Lewis Community College
Castries, St Lucie
Information générale
Forum:
Visual FoxPro
Catégorie:
Autre
Divers
Thread ID:
00150428
Message ID:
00150431
Vues:
19
>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
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform