Undo chages in data adapter

(Jocelyn Dagrain) #1

Can I use DataAdapter.CancelChanges() to undo changes in a datagrid bind to a bindingsource
if not what would be the best way to accomplish this with DA


(EvgenyK) #2

pls specify what platform (Delphi, .NET, etc) you are using

(antonk) #3

Assuming you are talking about .NET LinqDataAdapter - this method removes list of pending changes that should have been sent to the server on ApplyChanges call.

IIRC DataGridView doesn’t have any built-in Undo/Redo functionality, so it is up to you to implement the Undo stack