I have a bindingList<T> that every bindlist object implements INotifyPropertyChanged my WinForm, I used a BindingSource and set its data source to bindingList<T> , and then bound some text fields to the properties of each element in a BindingList (I use this winform for CRUD operations):
tbName.DataBindings.Add("Text", myBindingSource, "Name", true); tbFamily.DataBindings.Add("Text", myBindingSource, "Family", true);
and also I have a button to cancel editing. but when I edit the record and I click the βCancelβ button, only the last edited field cancels, I want to cancel the whole line and restore all values ββto the values ββthat exist before editing, how can I do this?
source share