We use cookies to give you the best experience on our website. If you continue to browse, then you agree to our privacy policy and cookie policy. Image for the cookie policy date
close icon

GridControl: is there a find method to get a datarow index by passing a datarow?

My problem is that whenever I refresh the grid after a change, the selected row is always going back to row 1. I would like instead to keep the selected index at the row that have been changed. So i thought maybe if there is a find method where i could pass that datarow and it will return me the index in the grid and then i could select it.
 
I tried to keep the index of the row before the change is done, then recover it after the refresh, but sometimes because of the sorting, the row might move up or down and therefore that index is no longer the good one for that row.
 
Thanks for your help.
 
 

1 Reply

RB Ragamathulla B Syncfusion Team August 2, 2012 05:04 AM UTC

Hi Quynh,
 
Thank you for your interest in Syncfusion products,
 
Please refer to the following sample which resolve your desired behaviour
 
 
Let me know if you have any further concerns.
 
Regards,
Ragamathullah B.

Loader.
Live Chat Icon For mobile
Up arrow icon