data binding and rejectchanges

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
 
P

PJ6

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

Paul
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top