data binding and rejectchanges

  • Thread starter Thread starter PJ6
  • Start date Start date
P

PJ6

If I edit more than one row in a databound DataGridView and then I want to
cancel the edits, calling the RejectChanges method in the DataTable often
does not cause the grid to revert back to the original values - and never
more than one row, when it does work.

I've tried ResetBindingSource but that seems to be really flaky and throw
inappropriate exceptions.

What's the best way to cause the grid to show reverted values without having
to load the data again?

Paul
 
I was using one dataset with multiple tables, I was just calling
rejectchanges on the wrong table.

Paul
 
Back
Top