Is there a way I can receive a notification after a WPF DataGrid row has been edited and the changes committed to the underlying object? At this point I want to persist the modified item to disk.
I don't need to know which row was modified, I can find that out myself, I just need the notification that a row has been modified.
I could register a PropertyChanged handler with each object in the model and be notified that way, but apart from having to mess around registering/deregistering event handlers whenever items are added/removed from the collection, a bigger problem is how to handle multiple PropertyChanged events being raised on a row edit. I don't want to be saving the item multiple times.