Search code examples
winformsvalidationdata-bindingtextboxbindingsource

Push data back from control to source without Validating event


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.