Windows::Forms::MouseButtons::Left) if (dataGridView1->HitTest(e->X, e->Y)->Equals(DataGrid:Forms::MouseButtons::Left) if ((dataGridView1->HitTest(e->X, e->Y)->Type) == DataGrid
for (int i = 0; i < datagrid1.SelectedRows.Count; i++){ datagrid2.Rows[index].Cells[0].Value = datagrid1.SelectedRows[i].Cells[0].Value.ToString();
datagrid2.Rows[index].Cells[1].Value = datagrid1.