Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Grid problems on tabbed form
Message
Information générale
Forum:
Visual FoxPro
Catégorie:
Gestionnaire d'écran & Écrans
Divers
Thread ID:
00360610
Message ID:
00360691
Vues:
11
Stan,
Before you requery a cursor that is populating a grid you must set the grid RecordSource to '' (empty string, 2 single quotes)
Thisform.....MyGrid.Recordsource = ''
Select MyCursor
Requery()
Thisform.....MyGrid.RecordSource = 'MyCursor'
If you re-build the cursor that is the RecordSource the grid will 'lose' all of its formatting as you saw.

HTH
Barbara


>I have a six tabbed form that has a grid on the fifth page. The recordsource for the grid is an updatable cursor. The cursor has six fields, but I am only displaying two on the grid. If I simply select the next available work area, the grid is displayed properly and all methods in the grid work. If I either re-use a previously used work area or actually close the last used cursor before creating the new cursor, the grid is displayed with the correct data, but all of the fields are accessible and none of the methods in the grid work. Any ideas as to why this is happening would be appreciated.
>
>Stan Symons
Barbara Paltiel, Paltiel Inc.
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform