Your Privacy Matters: We use our own and third-party cookies to improve your experience on our website. By continuing to use the website we understand that you accept their use. Cookie Policy
620
Multiple rows deletion : prompt user to continue deletion or not if an error occurs
posted

Hi

 

I would like to implement a multiple rows deletion mechanism which would prompt the user to continue or to stop the deletion of remaining rows (if any) in case one row deletion failed (due to business rule).

The issue I encounter is that using _ultraGridList.DeleteSelectedRows(); I cannot know in the delete event if some rows remain to be deleted.

 protected virtual void source_RowDeleting(object sender, RowDeletingEventArgs e)

if (!DeleteData(e.Row.Tag))
             e.Cancel = true; 

}

Any ideas


Thanks in advance