Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Grid Dissapears
Message
 
À
07/05/2001 19:31:08
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:
00504527
Vues:
16
Robert,
Fred was using "ZAP" in a generic sense. You don't use the ZAP command on the table, but simply set the grid recordsource to an empty string before making changes to the cursor. As he showed in his brief code, first you set the grid Recordsource to an empty string, update your data and then reset the recordsource to its original value.
thisform.oGrid.RecordSource = ""
*get your new data here
thisform.oGrid.RecordSource = "cursoralias"
With this technique there's no need to reset any of the column controlsource values, widths, header captions, etc.

HTH
Barbara


>Sorry Fred, this didn't work. I tried zapping the record source of the grid and then the record source of all of the columns.
>
>The second time, I get error message "Unknown Member Column1". It's like the Grid has lost its definition.
Barbara Paltiel, Paltiel Inc.
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform