Does anyone have an example of how to use Catel MVVM in a WPF Editable DataGrid?
I have bound a WPF DataGrid to an ObservableCollection of ViewModels (each representing a row in the grid).
Amongst other questions there are: at what point, where and how should I save the data if a row has changed? Should this be in the ViewModels
protected override void OnEndEdit(System.ComponentModel.EditEventArgs e)
method? And if so, is there a method to see if a row has changed when reaching the OnEndEdit method?
I though the property HasDirtyModel of the ViewModel could be used, but this always seems to be false in the OnEndEdit method whether something has been edited in the grid row or not.
And the IsDirty property of the Model always seems to be true even if no fields have been modified in the grid row at all.
Some help, guidance, examples would be wonderful!