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
320
Row Cancel Update
posted

Hello guys,

I got a problem on using the CancelUpdate method of a row.

My scenario is that:

After change of the cell in the grid, user are able to update the record by lost foucs, leave row or pressing Function Key like "F2"

Each update process will pop up a message dialog for DialogResult (Yes/No)

After the confirmation (Yes), the update will take place, but if result is No, the row should restore to the original values

The problem is, after the user click "No" .. the row will not restore the value (But I can press "ESC" to restore)

Any solution to solve this issue? (Especially pressing the F2 button for update, it is the current user experience)

Thank You for the help!

Regards

Andrew

Parents
  • 469350
    Verified Answer
    Offline posted

    Hi Andrew,

    I think CancelUpdate behaves just like the escape key. So calling it once will only cancel changes made to the active cell. If you want to cancel all edits to the row, you have to call it twice.

     

Reply Children
No Data