Information générale
Titre:
Behavior of Grid seems to differ from 8.0 to 7.0
I face the following problem when updating from 7.0 to 8.0 :
When the user enters a grid where he is able to change the current record, I prompt a dialog in the when()-method of the grid where he can decide if he wants to save the changes of the current record, to reject them or to cancel (messagebox ('text', 3)). If he chooses 'cancel' I leave the when()-method with return .F. -> worked perfect in vfp 7.
In vfp8 however, after this return .F. in the when() my changes are saved and the grid changes the current record (an afterrowcolchange() of the grid is also executed).
Is there an explanation or even work around for this different behavior?
One thing I tried already: putting my dialog in the beforerowcolchange() of the grid and processing a "nodefault" if the user changes cancel. But then, when going back to my controls, I get the dialog again (the beforerowcolchange() is executed once more, why?).
Thanks for your answers,
Martin Moll
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