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
290
Prompt the user when cell value changed in ultrawingrid
posted

HI

All the cells in my  ultrawingrid are editable.

For every row there is a button called Save.

So when I change the value of a cell in a particular row and clicks on other row without saving

it should prompt the user that changes will be lost, do you wish to continue without saving with yes no options.

When user clicks yes - all the changes should be undone and active row should be the row that user clicked.

 When user clicks no - changes will remain same and the active row should be the row that user made changes.

Also when the other control got focus (when grid lost focus)it should prompt the user if changes are made.

Please help me how to do this. I have done this but with many flags and low preformance code.

Parents
  • 469350
    Offline posted

    I think what you can to is set the RowUpdateCancelAction property on the grid so that the row maintains the focus. Then you can use the BeforeRowUpdate event to display your message and cancel the event if the user chooses not to leave the row. 

Reply Children