Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Loosing grid configuration
Message
De
22/07/1999 03:22:12
 
Information générale
Forum:
Visual FoxPro
Catégorie:
Codage, syntaxe et commandes
Divers
Thread ID:
00244242
Message ID:
00244575
Vues:
23
Hi Jorge.

>> Any tips on preventing to loose the configuration or at least an easy way to save the hole grid (inlcuding colunms) configuration to restore after the cursor regeneration? <<

What I generally do is create an updateable cursor in the form.load() to bind my grid to add design time. The I have a custom grid.reset() methos that re-runs the sql into a temp cursor, zaps the grid's recordsource, and does an APPEND FROM DBF('Temp') into the grid's recordSource.

Zapping the updateable cursor will not rest your grid since it doesn't close its recordSource.

Marcia
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform