Undo chages in data adapter

Bonjour
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

Merci.

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

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