i use the current code to reselect a line of code in my datagrid
- int currentRow = dgUsers.SelectedRows[0].Index;
-
dgUsers.Refresh();
-
dgUsers.Rows[currentRow].Selected = true;
this reselects the line (it turns blue) but the arrow pointing to a row gets reset to row one. also, my datagrid has a scroll bar for up and down, and when i select the last row, then toggle its status, the datagrid is looking at the top rows, even whil the blue selected line is at the bottom (i believe the datagrid focusses on the arrow, since the arrow is on the last line i selected if i allow multiselect (wich is disabled).
hope you people can help