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

 

Parents
No Data
Reply
  • 469350
    Suggested Answer
    Offline posted

    Hi,

    What event are you using here? This doesn't look like an event on the grid. The grid has no event for deleting a single row, the grid event for deleting rows is BeforeRowsDeleted and this event gives you the whole list of rows, not just one.

Children