Possible to scroll to a specific row in a datagrid?

Is it possible to scroll to a certain row in a datagrid, and how would you do it

Answer this question

Possible to scroll to a specific row in a datagrid?

  • Fradam

    C#:

    this.dataGrid1.CurrentRowIndex = certainRow;

    VB:

    Me.dataGrid1.CurrentRowIndex = certainRow



  • sureshsundar007

    Brilliant! I just forgot to run Update on the DataGrid!
  • Haff

    Doesn't work. The cursor moves and the right row is selected but the scrollbar stays at the top.
  • Lucas Pasquali

    There's no need to update, it would scroll on it's own but only if selected row was invisible.



  • Possible to scroll to a specific row in a datagrid?