This is a migrated thread and some comments may be shown as answers.

Finding index of row in RadGridView

1 Answer 158 Views
GridView
This is a migrated thread and some comments may be shown as answers.
Jason Moore
Top achievements
Rank 1
Jason Moore asked on 14 Aug 2014, 04:07 AM
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

1 Answer, 1 is accepted

Sort by
0
Dimitrina
Telerik team
answered on 14 Aug 2014, 07:20 AM
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.
 
Tags
GridView
Asked by
Jason Moore
Top achievements
Rank 1
Answers by
Dimitrina
Telerik team
Share this question
or