private void dgvUser_KeyDown(object sender, KeyEventArgs e) { if (e.KeyCode == Keys.V && e.Control) { int rowIndex = int.MaxValue; foreach (DataGridViewRow currow in dgvUser.SelectedRows) { if (rowIndex > currow.Index) { rowIndex = currow.Index; } } viewmodel.PasteDataToGridview(1, rowIndex); } }