Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Grid Dissapears
Message
De
07/05/2001 18:12:14
 
 
À
07/05/2001 17:32:19
Robert Dinsmore
Dinsmore & Associates, Inc.
Lexington, Kentucky, États-Unis
Information générale
Forum:
Visual FoxPro
Catégorie:
Gestionnaire d'écran & Écrans
Titre:
Divers
Thread ID:
00504452
Message ID:
00504466
Vues:
14
>A form has a pageframe and on one of the pages, a grid is defined. The record source for this grid is a cursor which is initialized from a table and then commands are issued to define the control source for the 5 grid columns. (thisform.pgfbase1.page6.grdbase1.column1.controlsource = "temp.field1", etc.)
>
>This works fine the FIRST time the page is activated for a particular record. However, after that record is saved and another record is selected, the grid as originally designed dissapears and a grid is displayed that shows all columns of the record even though the above command executes as before.
>
>Anyone have any ideas? This is driving me crazy.

Zap the RecordSource of the grid before you get the new info:

thisform.oGrid.RecordSource = ""
*get your new data here
thisform.oGrid.RecordSource = "cursoralias"
Fred
Microsoft Visual FoxPro MVP

foxcentral.net
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform