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 : Nov 16th 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:

Created:

Updated:

Platform:

Replies:

104523 Jul 26,2012 03:00 PM UTC Aug 2,2012 05:04 AM UTC WinForms 1
loading
Tags: GridControl
Quynh
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.
 
Regards,
Ragamathullah B.

CONFIRMATION

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.

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

;