Hi,
When using databindings with OnPropertyChanged as updateDataSourceMode the data source is updated 2 times (OnPropertychanged and OnValidation) : 1- after TextChanged for textbox, CheckedChanged for checkbox, SelectedValueChanged for comboBox... 2- after Validation
I will explain more with an example : assume we have an Employee class with a boolean propertie IsManager, this propertie is bounded to a checkbox in a form in this way : checkboxIsMgr.DataBindings.Add("Checked",employee,"IsManager",false,OnPropertyChanged);
when checkboxIsMgr is checked/unchecked the IsManager propertie setter is called and when moving to another control (the checkbox lost the focus and the Validation event is called) the IsManager propertie setter is called again.
How can I avoid the second data source update without modifying the updateDataSourceMode to OnValidation?
Best regards