DataGridView.ScrollToRow(int rowIndex)

  • Thread starter Thread starter Guest
  • Start date Start date
G

Guest

Hi there does anyone have any idea on how to implement this function?
How i wish that DataGridView had a GridVScrolled function like the old
DataGrid but it doesn't so i'm wondering if there is another approach?

thanks in advance
Brian Keating
 
ok have kinda solution, works for requirements anywyas

DataGridViewCell topleft1 = dataGridView1.FirstDisplayedCell;
if (topleft1 != null)
dataGridView2.FirstDisplayedCell =
dataGridView2[topleft1.ColumnIndex, topleft1.RowIndex];
 
Back
Top