title: How to access object from another tab c#
body: <p>I have a tabcontrol on my winforms. On a tab page I have a <code>combobox</code> and on the another one I have a <code>datagdridview</code>. I need to get the text of a column of <code>datagridview</code> into <code>combobox</code>. The idea is that I don't know to have access at <code>datagridview</code> . It says that it is not in the current context.</p>
  
  <p>This is how I have tried:</p>
  
  <pre><code>private void GetTextGrid()
      {
          combobox1.DataSource = gridview1.DataSource;
          combobox1.DisplayMember = "Column1";
          combobox1.ValueMember = "Column1";
      }
  </code></pre>