It is very simple. During editing, save cellindex in a variable, and then reselect it.
Get the column and row index:
e.ColumnIndex; e.RowIndex;
and save them in a variable. After editing the cell, select the cell again:
dataGridView1.Rows[rindex].Cells[cindex].Selected = true;
source share