Don't know if you have solved your problem, but the last line in my code:
dataGridViewBillCodes.Rows[x].Selected = true;
dataGridViewBillCodes.FirstDisplayedScrollingRowIndex = x;
dataGridViewBillCodes.CurrentCell =
dataGridViewBillCodes.Rows[x].Cells[0];
is what seems to...
I too struggled with this for a while. I just came up with a solution.
Let's say my DataGridView is called "dataGridViewBillCodes" and I want the new selected row index to be x (assuming x is a valid index in the DataDridView) and I also want the row selection indicator to move to that same row...
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.