tags:

views:

100

answers:

2

MVVM doesn't allow code behind and so event handling. So what's the MVVM way to be notifyed that a cell been changed ?

+1  A: 

Its a pretty legit and obvious question since there are pretty legit solutions to the problem for MVVM. I guess someone marked it down because this has probably been asked countless times before.

I know there is something built in to do this in .Net4. I am stuck at .Net3.5 so I use the CommandReference class from the WPF toolkit, to convert an event in the view to a command in a viewmodel.

NVM
A: 

Do you need to handle the CellEditEnding Event? Would it be a possibility to execute the code in the setter of the property which is bound to the cell?

Roel