General information
Title:
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
Reply
View the map of this thread
View the map of this thread starting from this message only
View all messages of this thread
View all messages of this thread starting from this message only