title: unbinding bindingsource
body: <p>I am using a bindingsource in my windows forms application to populate some textboxes etc in my view. Binding works OK but how can I unsubscribe my bindingSource from from my object?</p>
  
  <pre><code>bindingSource.DataSource = new Foo();//OK
  bindingSource.DataSource = null;//Not ok
  </code></pre>
  
  <p>If I try to unbind by setting <code>data = null</code> I get an exception:</p>
  
  <blockquote>
    <p>System.ArgumentException : Cannot bind
    to the property or column Bar on the
    DataSource. Parameter name: dataMember</p>
  </blockquote>
  
  <p>I don't want to remove all bindings to my controls (i have a lot) but would like to suspend binding as long as the bindingSource has no data....</p>
  
  <p>I found a workaround like this <code>bindingSource.DataSource = typeof(Foo);</code> but is this THE way?</p>