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

Move to Row in bound grid given an object

Thread ID:

Created:

Updated:

Platform:

Replies:

13510 Apr 29,2004 08:21 PM Apr 30,2004 06:30 AM Windows Forms 1
loading
Tags: GridControl
Damien Sawyer
Asked On April 29, 2004 08:21 PM

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 06:30 AM

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);

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.

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.

;