My DataGridView is being 'helpful' by automatically updating the underlying object in the data source when a cell is edited. I want to prevent this and do the updating myself (so that I can perform the update in such a way that it's registered with our custom undo manager).
I assumed that the way to do this was to handle the CellValueChanged event, but the underlying object has already been updated when the event handler is called.
Is there a correct way of preventing the DataGridView from doing this? Perhaps there is a particular event I can handle.