I got the following WPF DataGrid example related to ViewModel in MVVM template, but it is read-only:
An MVVM example that has buttons that switch data in a ViewModel
I tried expanding it so that the DataGrid was tied to the ViewModels observable collection, so that editing the cells would result in OnPropertyChanged events in the corresponding ViewModels, but could not make them work the way I wanted.
Does anyone know an example code that does this, i.e. binds a DataGrid to a ViewModels collection with OnPropertyChanged properties and delegated commands , etc.
source
share