Information générale
Catégorie:
Gestionnaire d'écran & Écrans
>Whenever I rebuild the cursor by re-running the SQL SELECT, however, the parent class settings for the grid are lost. The DblClick event no longer works and even the column widths and fonts are changed to be what looks like a regular BROWSE window.
This is the mother of all FAQs. When you re-create your cursor, the grid loses all data bindings and reverts to default behavior. To deal with this in the simplest way, use a view and simply execute a ReQuery rather than destroying/recreating your cursor. If this is not an option, then do a myForm.Removeobject to remove the grid before recreating your cursor, then recreate the cursor, then do myForm.Addobject using your grid class. I think you need to set gridObject.Visible to .T. after you add it to your form.
Précédent
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