I want to pass the data from a datagridview1 to another datagridview2 by pressing a button, but I want all the selected data to be passed. Until now I only get the records to go through one by one, that is a row. My problem is I can not get all the data through pressing the "pasartodo" button If someone can help me I will be very grateful,
dataGridView1.Rows.Add(new string[] {
Convert.ToString(dataGridView2[0, dataGridView1.CurrentRow.Index].Value),
Convert.ToString(dataGridView2[1, dataGridView1.CurrentRow.Index].Value)
Convert.ToString(dataGridView1[2, dgvRegistro.CurrentRow.Index].Value)
});
dataGridView2.Rows.RemoveAt(dataGridView2.CurrentRow.Index);