Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Preserving Grid Properties: Arnon is smart
Message
 
 
À
Tous
Information générale
Forum:
Visual FoxPro
Catégorie:
Gestionnaire d'écran & Écrans
Titre:
Preserving Grid Properties: Arnon is smart
Divers
Thread ID:
00011864
Message ID:
00011864
Vues:
73
I think that Arnon recommended this several weeks ago, but I tried it today and was pleased. If you are having trouble with your grid maintaining all of its properties whenever you change its recordsource or regenerate the table/cursor upon which it is based, consider subclassing the grid and storing it in a VCX. Then,

ThisForm.RemoveObject("the grid object name")
Regenerate the underlying table any way you want.
Thisform.Addobject("same grid object name","grid class name")
grid.visible=.t.

This works well. Too bad there isn't a built-in capability like:

Grid.Connected=.F. && puts grid in Limbo
Rengerate underlying table
Grid.Connected=.T. && Takes grid out of Limbo
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform