I'm using vb.net, EF 6. I have a datagridview bound to a Bindingsource, Bindingsource's datasource is filled like this:
Mybindignsource.DataSource = (from t in context.mobj1s select t).ToList();
Now, the user can delete a record using a button with this code :
MyBindingsource.RemoveAt(index)
After that, I want to give the user the possibility to undo the deletion (and also other changes that he has made on other records).
Currently, I'm reading again from the database with the same code as above, but I'm asking if there is another method without reading the database again.