Information générale
Titre:
Problems with delete and fieldvalid
I have grid on a form that is displayed in a top level form. The user enters part numbers into new records in the grid, in the cmdatamanager.fieldvalid I check that the part does not already exist in the part list; if it does I give a duplicate part # error. If the user deletes the record that is duplicated using the grids context menu, I get the duplicate part # error again, but behind the duplicate part# error dialog is the “Are you sure you want to delete…?” dialog.
The grids contextmenuexecute calls thisform.delete() which is causing the fieldvalid to fire and putting the duplicate part # error on top of “Are you sure you want to delete…?”.
After the user selects Yes to the delete message the record is deleted but then the part number on the first record in the grid is changed to what was just deleted.
Is there anything I can do to prevent this?
CodeMine version 7.2.
Thanks
Tom
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