Push data back from control to source without Validating event
-
20-08-2019 - |
Question
I have TextBox
controls on a WinForm
bound to a BindingSource
. If I set CausesValidation = false
on these controls it doesn't update data source on tableAdapter.Update()
method. I know that Control.Validating
event does this saving but how can I update source if CausesValidation
is disabled?
Solution
Problem is solved using DataSourceUpdateMode.OnPropertyChanged in Binding.
Licensed under: CC-BY-SA with attribution
Not affiliated with StackOverflow