AnsweredAssumed Answered

How to stop a delete

Question asked by mjk5000 on Dec 12, 2017
Latest reply on Dec 17, 2017 by mjk5000

I want to stop or warn a user of the deletion of a feature in the RowDeletedEvent.  When the user tries to delete the field I want to ask them if they are sure.  I want to roll back or something if they don't want to delete the item.

protected static void onRowDeleteEvent(RowChangedEventArgs args)
        {
            try
            {
                MessageBox.Show("Are you Sure", "Are you Sure", System.Windows.MessageBoxButton.YesNo, System.Windows.MessageBoxImage.Warning);
                //ROLL BACK HERE?

            }
            catch (Exception e)
            {
                ProMapBlackLogWriter.logError("ProMapBlackModule - onRowDeleteEvent", e);
            }
        }

Outcomes