My app is C# winform.
I saved my data in sql database with entity framework, but when I want to edit them the binding-source when user changes the data, but don't want to update the current object CancelEdit()
doesn't work.
My binding-source datasorce is a table of entity framework.
My code when form loads:
myEntity contex = new myEntity();
myBindingSource.DataSource = contex.myTable;
And code for cancel button:
myBindingSource.CancelEdit();