Finding index of row in RadGridView

2 posts, 0 answers
  1. Jason Moore
    Jason Moore avatar
    22 posts
    Member since:
    Jun 2012

    Posted 13 Aug 2014 Link to this post

    Hi,

    I have a RadGridView where filters can be applied.

    What is the most efficient way of finding the index of the row when filters are applied?

    For example a row may be the 5th row in a grid but when filters are applied it is now the top most row hence has an index of 0.

    Thanks
  2. Dimitrina
    Admin
    Dimitrina avatar
    3769 posts

    Posted 14 Aug 2014 Link to this post

    Hi,

    When a filtering is applied, all the items displayed in RadGridView are available through RadGridView.Items collection.
    You can find the index of a specific row with the following code:
    clubsGrid.Items.IndexOf(row.Item)

    Regards,
    Didie
    Telerik
     
    Check out Telerik Analytics, the service which allows developers to discover app usage patterns, analyze user data, log exceptions, solve problems and profile application performance at run time. Watch the videos and start improving your app based on facts, not hunches.
     
  3. DevCraft banner
Back to Top