How to: Scroll to the Selected Row

4 posts, 0 answers
  1. Travis Parks
    Travis Parks avatar
    7 posts
    Member since:
    Sep 2009

    Posted 29 Apr 2010 Link to this post


    In our validation forms, we like to preselect the currently choosen item. I have the code written for selecting the corresponding BindingSource.Position. This automatically selects the row. How can I force the GridView to scroll to the currently selected row?


  2. Svett
    Svett avatar
    728 posts
    Member since:
    Oct 2013

    Posted 30 Apr 2010 Link to this post

    Hello Travis Parks,

    You can scroll to the concrete row by invoking the GridTableElement's method SrollToRow. You can use the following code snippet to achieve that:

    GridTableElement tableElement = this.radGridView.CurrentView as GridTableElement;
    GridViewRowInfo row = this.radGridView.CurrentRow;
    if (tableElement != null && row != null)

    Kind regards,
    the Telerik team

    Do you want to have your say when we set our development plans? Do you want to know when a feature you care about is added or when a bug fixed? Explore the Telerik Public Issue Tracking system and vote to affect the priority of the items.

  3. DevCraft Release
  4. R
    R avatar
    3 posts
    Member since:
    Dec 2012

    Posted 27 Aug 2013 Link to this post

    Is it possible to do this when using MVVM and data binding?

  5. Ivan Petrov
    Ivan Petrov avatar
    692 posts
    Member since:
    Sep 2012

    Posted 28 Aug 2013 Link to this post

    Hello Randy,

    Thank you for writing.

    As long as the grid is data bound and the actual data is loaded you can use the method proposed by my colleague. When bound RadGridView creates its own data items based on the data source and uses them for navigation.

    I hope this will be useful. Should you have further questions, I would be glad to help.

    Ivan Petrov

    Learn what features your users use (or don't use) in your application. Know your audience. Target it better. Develop wisely.
    Sign up for Free application insights >>

Back to Top