title: Pass Datagridview row data to new form
body: <p>I have two forms. Let's say form A and form B. I want to pass datagridview row data when clicked, from A to new form B. Note, datagridview is in a UserControl in form A.</p>
  <p>I've tried using below:</p>
  <p>Form frm3 = new Form3();</p>
  <pre><code>        frm3.textBox1.Text = dataGridView1.CurrentRow.Cells[0].Value.ToString();
          frm3.textBox5.Text = dataGridView1.CurrentRow.Cells[2].Value.ToString();
          frm3.textBox6.Text = dataGridView1.CurrentRow.Cells[3].Value.ToString();
         
  </code></pre>
  <p>However, I get a warning. &quot;Form does not contain definition for textbox1 and no acceptable extension method .....&quot;</p>
  <p>I need ideas. Thanks!</p>