private void CellEditMethod() { int a = RaceDGView.Rows.Count; DataGridViewRow rowToSelect = RaceDGView.Rows[a - 1]; rowToSelect.Selected = true; rowToSelect.Cells[RaceDGView.SelectedCells[0].RowIndex].Selected = true; RaceDGView.CurrentCell = rowToSelect.Cells[RaceDGView.SelectedCells[0].RowIndex]; AddRowPositionLbl.Text = "Added row number is: " + Convert.ToString(RaceDGView.SelectedCells[0].RowIndex+1); RaceDGView.BeginEdit(true); }