I have a form that has about 10 different controls (such as textboxes and comboboxes). When the user attempts to BindingSource.MoveNext or BindingSource.MovePrevious
, it checks to see if any changes were made and if so a MsgBox appears with "Yes", "No", or "Cancel". When the user clicks "No" I call BindingSource.CancelEdit and DataSet.RejectChanges. My problem comes when the user returns to the record and it still displays all the previous entered data (that was rejected). How do I refresh that data, so it returns to the original values.
So for example: The form loads and the first textbox contains "Value1". I then change that to "Value2". I move records, and when requested wether to save the data or not, i choose "No". I then move back to the record I was just working on, but despite cancelling the edit and rejecting the changes the first textbox is still set to "Value2" - How do i set it so it's "Value1" instead?