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

Move to Row in bound grid given an object

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

1 Reply

AD Administrator Syncfusion Team 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);

Live Chat Icon For mobile
Up arrow icon