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
Unfortunately, activation email could not send to your email. Please try again.
Syncfusion Feedback

Move to Row in bound grid given an object

Thread ID:





13510 Apr 30,2004 12:21 AM UTC Apr 30,2004 10:30 AM UTC WinForms 1
Tags: GridControl
Damien Sawyer
Asked On April 30, 2004 12:21 AM UTC

Hi, I am using a bound data grid (v 1.6). I am filling an arraylist with objects and setting the list as the datasource for the grid. Given an instance of one of those objects, I need to seek to that row in the grid (it''s simple ''find'' functionality. I''ve been playing around with ListManagerPositionToRowIndex and it''s counterpart RowIndexToListManagerPosition, however have not had any success. Thanks in advance, DS

Administrator [Syncfusion]
Replied On April 30, 2004 10:30 AM UTC

Have you tried code like this? It seems to work for me in a little sample. int i = StatesArrayList.IndexOf(state); int rowIndex = this.gridDataBoundGrid1.Binder.PositionToRowIndex(i); this.gridDataBoundGrid1.CurrentCell.MoveTo(rowIndex, 1);


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

This page will automatically be redirected to the 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

Live Chat Icon For mobile
Live Chat Icon