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. (Last updated on: November 16, 2018).
Unfortunately, activation email could not send to your email. Please try again.
Syncfusion Feedback

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

Thread ID:





104523 Jul 26,2012 03:00 PM UTC Aug 2,2012 05:04 AM UTC WinForms 1
Tags: GridControl
Asked On July 26, 2012 03:00 PM UTC

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.

Ragamathulla B [Syncfusion]
Replied On 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.
Ragamathullah B.


This post will be permanently deleted. Are you sure you want to continue?

Sorry, An error occured while processing your request. Please try again later.

Please sign in to access our forum

or the page will be automatically redirected to sign-in page in 10 seconds.

Warning Icon You are using an outdated version of Internet Explorer that may not display all features of this and other websites. Upgrade to Internet Explorer 8 or newer for a better experience.Close Icon