Is there any way to select a row in RadGridView using an object as index?
Thank you and Regards!
1 Answer, 1 is accepted
0
Dess | Tech Support Engineer, Principal
Telerik team
answered on 27 Mar 2018, 02:04 PM
Hello, Mikel,
If you need to select a row by its DataBoundItem for example, it would be necessary to iterate the RadGridView.Rows collection and find the row that holds that record. Then, considering its index you can select the desired row.
I hope this information helps. If you have any additional questions, please let me know.
is there a faster way to do this? If I have to iterate over 10k rows and the searched value is at row 9k, it takes a long time.
Regards Marc
Dess | Tech Support Engineer, Principal
Telerik team
commented on 07 Oct 2022, 07:24 AM
Marc, there is no faster way to find a specific row than iterating the row. However, please have in mind that RadGridView offers search functionality which is highlights the found matches. This search logic is executed by a BackgroundWorker and it provides much faster experience. Additional information about this functionality is available here: