if (grid.Rows.Count > 0) { try { grid.Rows[grid.Rows.Count - 1].Selected = true; grid.CurrentCell = grid.Rows[grid.Rows.Count - 1].Cells[1] } catch (IndexOutOfRangeException) { } catch (ArgumentOutOfRangeException) { } }
dataGridView1.ClearSelection();//If you want int nRowIndex = dataGridView1.Rows.Count - 1; int nColumnIndex = 3; dataGridView1.Rows[nRowIndex].Selected = true; dataGridView1.Rows[nRowIndex].Cells[nColumnIndex].Selected = true; //In case if you want to scroll down as well. dataGridView1.FirstDisplayedScrollingRowIndex = nRowIndex;