Hi,
I have a RadGridView that has several columns with readonly set to false (ie. these can be edited). Predictably, when I edit a particular cell, the changes are changed in the relevant row in my Collection in my viewmodel when the user presses enter or clicks somewhere else.
When a change is made, I update my database.There is one or two checks I make and then the database update call itself could throw an exception so I also have a catch that reverts the values back to the original values (using e.OldValues).
Currently, similar to the example provided by Veselin in this thread, I use the RowEditEnded event handler. However, I would like to have all this logic in my ViewModel. What are my options? Do I have any? Ofcourse examples are a big help.
Thanks
I have a RadGridView that has several columns with readonly set to false (ie. these can be edited). Predictably, when I edit a particular cell, the changes are changed in the relevant row in my Collection in my viewmodel when the user presses enter or clicks somewhere else.
When a change is made, I update my database.There is one or two checks I make and then the database update call itself could throw an exception so I also have a catch that reverts the values back to the original values (using e.OldValues).
Currently, similar to the example provided by Veselin in this thread, I use the RowEditEnded event handler. However, I would like to have all this logic in my ViewModel. What are my options? Do I have any? Ofcourse examples are a big help.
Thanks