AutoScroll in DataGridView (WinForms)
I've got the D.O.D. data in my hybrid, and when I'm looking for the number.
IDthe line in question is marked on the green list, but when the line is not in the visible part of the grid, it is not done AutoScrollto show the line, but only to celebrate.
How to write a code AutoScrollto mark the line and immediately show?
In such situations, properties are usually assisted
CurrentCellGrida. Take any cell from the line that you found and place it in it. Then the grid automatically reset the table to the right place.
dataGridView1.CurrentCell = dataGridView1[i, j];
j-number found line.