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
625
Event to catch when a new row is cancelled
posted

Hi,

 I'm using an UltraGrid which are bounded to a BindingList. Whenever a new row is created (In the UltraGrid), I'm catching the AfterRowInsert event, in order to do some business logic. But if the new row is cancelled, meaning that it is not committed, the UltraGrid is restored. Are there any event which tells me that the new "AddRow" row is cancelled?

 

Regards

 

Dennis Tycho Nielsen

  • 469350
    Verified Answer
    Offline posted

    You can use: BeforeRowCancelUpdate / AfterRowCancelUpdate.

    Note that this could occur for a row that is being edited, not just an AddNew row. So you may need to check e.Row.IsAddRow.