views:

556

answers:

2

Is there a property or setting to force a bound control in Winforms to update the object it is bound to when the input value, either in a textbox or whatever, actually changes?

And not after the control is tabbed out of.

+2  A: 

Assuming you have already bound the textbox to something:

  • Select the textbox in the designer
  • Click property "databindings"
  • Click property "advanced"
  • In this dialog look for the "datasource update mode"
  • Select onpropery changed instead of onvalidate

Now the datasource gets updated on every change of the text property of the textbox.

Julian de Wit
A: 

Thank you... I've spent 4 hours trying to figure out how to get my combobox to stop changing to system.data.datarowview. <3

thankyou