title: Copying rows from one DataGridView to another
body: <p>I have written an application that is connected to SQL database in C#.There are two forms.</p>
  
  <p>I have a DataGrid in the first form. There are those columns like ID,AD,SOYAD in Datagridview.</p>
  
  <p>I have a DataGrid in the second form(frm4) and there are those columns like ID,AD,SOYAD in Datagridview.</p>
  
  <p>I put ContextMenuStrip in the first DataGridView.</p>
  
  <p>My question is:I want to add to second DataGridView those rows which are choosen in the first DataGridView.</p>
  
  <pre><code>  frm4.dataGridView1.Rows[0].Cells[0].Value = dataGridView1.CurrentRow.Cells[0].Value.ToString();
    frm4.dataGridView1.Rows[0].Cells[1].Value = dataGridView1.CurrentRow.Cells[1].Value.ToString();
    frm4.dataGridView1.Rows[0].Cells[2].Value = dataGridView1.CurrentRow.Cells[2].Value.ToString();
  </code></pre>
  
  <p>I only can add one row with upper code. But,I want to add  multiple rows. I'm using below code for that. But, it's not working.</p>
  
  <pre><code>  for (int i = 0; i &lt; length; i++)
    {
        frm4.dataGridView1.Rows[0].Cells[0].Value = dataGridView1.CurrentRow.Cells[0].Value.ToString();
        frm4.dataGridView1.Rows[0].Cells[1].Value = dataGridView1.CurrentRow.Cells[1].Value.ToString();
        frm4.dataGridView1.Rows[0].Cells[2].Value = dataGridView1.CurrentRow.Cells[2].Value.ToString();
    }
  </code></pre>