title: Problem setting DataSource of a DataGridView
body: <p>What happens here is when in the form opens, it shows the contextMenu and display the DataGridView on it with the value of dataSet1. But when I click the button to change the DataSource of the Grid, it doesn't show the records of dataSet2.</p>
  
  <pre><code>private void Form1_Load(object sender, EventArgs e)
  {
      SetDataSource(dataSet1);// A populated DataSet
  }
  
  protected void SetDataSource(DataSet ds)
  {
      dataGridView1.DataSource = ds;
      ToolStripControlHost tsHost = new ToolStripControlHost(dataGridView1);
      contextMenuStrip1.Items.Clear();
      contextMenuStrip1.Items.Add(tsHost);
      contextMenuStrip1.Show(textBox1, 0, 27);
  }
  
  private void button1_Click(object sender, EventArgs e)
  {
      SetDataSource(dataSet2);// Another populated DataSet
  }
  </code></pre>
  
  <p>I tried adding another DataGridView control (dataGridView2) in my form, but this time I did not put it in a ToolStripControlHost and I did not add it to the contextMenuStrip1.</p>
  
  <pre><code>dataGridView1.DataSource = ds;
  dataGridView2.DataSource = ds; // &lt;-- Parent of this is the Form1, the control is not added in the contextMenuStrip.
  ToolStripControlHost tsHost = new ToolStripControlHost(dataGridView1);
  contextMenuStrip1.Items.Clear();
  contextMenuStrip1.Items.Add(tsHost);
  contextMenuStrip1.Show(textBox1, 0, 27);
  </code></pre>
  
  <p>When the Form1 loads, the contextMenuStrip1 popups and the dataGridView1 is being added as an item to it making dataGridView1 to disappear in the form and the dataGridView2 only remains in the Form1.</p>
  
  <p>When I hit the <code>button1</code> the <code>dataGridView2</code> changes its content base from its new <code>DataSource</code> (<code>dataSet2</code>), while the dataGridView1 still displays the value of <code>dataSet1</code>.
  What I noticed is when the time <code>dataGridView1</code> is being added to the <code>ToolStripHost</code>, and make it an Item in the <code>contextMenuStrip1</code>, the <code>DataSource</code> property of the <code>DataGridView</code> control is not being changed anymore. Unlike the <code>dataGridView2</code> that remains in the form which I did not add to the <code>contextMenuStrip1</code>.</p>