title: Removing an item from listbox in winform
body: <p>I am using VS2010, C#, .Net 4.0 and WinFormApplication.</p>
  
  <p>I have a listbox which is populated from a datasource. I want to remove an item at a time when they are double clicked.</p>
  
  <p>I read somewhere that if I populate my listbox from a datasource, no item can be removed. Is this true? If not, then how can I remove individual items?</p>
  
  <p>I tried the following:</p>
  
  <pre><code>listbox1.Items.Remove(listbox1.SelectedIndex);
  
  listbox1.Items.Remove(listbox1.SelectedIndex);
  
  lbTableColumns.Items.Remove(lbTableColumns.SelectedItem);
  </code></pre>
  
  <p>which cause the following error: </p>
  
  <blockquote>
    <p>ERROR: Items collection cannot be modified when the DataSource property is set.</p>
  </blockquote>