dataGridView1.FirstDisplayedScrollingRowIndex =i;
dataGridView1.CurrentCell = dataGridView1[j,i];
DataGridView.FirstDisplayedScrollingRowIndex
public static bool ScrollToColumn(DataGridViewColumn col) { if (col.Visible && col.Width > 0) { var dgv = col.DataGridView; int colRight = 0; foreach (DataGridViewColumn _c in dgv.Columns) { colRight += _c.Width; if (_c == col) break; } var delta = colRight - dgv.Width; if (delta > 0) { dgv.HorizontalScrollingOffset = delta; return true; } } return false; }
var
This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)