OnBeforeDelete
Smartsite 7.7 - ...
The OnBeforeDelete method is invoked just before the selected records will be deleted.
You can use this function to validate if the delete operation should be allowed or implement your own delete logic and cancel the normal delete operation by returning DataEditorActionResultType.Cancel().
Notice that an Delete operation is invoked from a library context.