Information générale
Catégorie:
Gestionnaire d'écran & Écrans
Titre:
Preserving Grid Properties: Arnon is smart
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
Voir le fil de ce thread
Voir le fil de ce thread à partir de ce message seulement
Voir tous les messages de ce thread
Voir tous les messages de ce thread à partir de ce message seulement