title: Delete multiple rows from DatagridView (Transfer to Subtable)
body: <p>I am writing a code where I transfer rows between two datagridiews. The rows I selected are transferred to the sub table and I want the transferred rows to be deleted from the table above. However, with this code I wrote, only the last row is deleted from the table, but all of them are transferred to the table below. here is my codes</p>
  <pre><code>if (dataGridView1.SelectedRows.Count == dataGridView1.Rows.Count)
          {
              dataGridView1.Rows.Clear();
          }
          foreach (DataGridViewRow row in dataGridView1.SelectedRows)
          {
              dataGridView1.Rows.Remove(row);
          }
  </code></pre>
  <p>where is my mistake?<br />
  can you help me?</p>
  <p><img src="https://i.stack.imgur.com/7wAsL.png" alt="Screenshot" /></p>