title: Databinding in combobox
body: <p>Reference:
  <a href="https://stackoverflow.com/questions/1327117/c-databinding-on-combobox">C# databinding on combobox</a></p>
  
  <p>I have a similar situation. I have a form with few text boxes, combo boxes, check boxes. Initially I use to catch "changed" event (like, text_changed, selected_index_changed. etc) and sync the UI data with a backing object. I learned about Databinding and I bound all the UI elements to my backing object. </p>
  
  <p><strong>Problem:</strong> 
  Based upon state of my UI, I was enabling and disabling "Submit" button which uses backing object to save to contents. But now, due to DataBinding, property of backing object does not change unless the control bound to that properly looses focus. </p>
  
  <p><strong>Question</strong>
  Is there a standard way to solve this problem ? Or do I still need to catch "changed" event and set the value of backing object ?</p>
  
  <p>Also, to make the form fault tolerant, I use to save the backing object every N seconds. But with DataBinding (given that the control which is on focus still havn't set its value to the backing object) I will be saving wrong data. </p>
  
  <p><strong>What I tried</strong>
  Evey N seconds call this.validate() -> this does not work as it actually populate the old data in the control on focus.</p>
  
  <p>----- NOTE ------</p>
  
  <p>The backing object implements INotifyPropertyChanged interface.</p>
  
  <p>and this is how I bind (not in designer) but in code.</p>
  
  <p>Binding binding = new Binding("checked", solution, "InternalFlag");
  checkBoxFlag.DataBindings.Add(binding);</p>