Hello,
after I refresh my grid (resetting datasource and putting the new oen), I want to preserve the row selection.
How can i find a particular row from the datasource and make it the activerow,
tx
Marc
Hi Marc,
If you are causing the data source to send a Reset notification, then all rows in the grid are destroyed and new ones are created for the new data.
To find a row, you will need to loop through the rows in the grid, there's no built-in search functionality in the grid. If you know the position of the row you want in the BindingManager, then you can use that index to find the row in the grid using something like this:
this.ultraGrid1.Rows.GetRowWithListIndex(index);
I have the same scenario here, is it not possible to use the ultragrid1.rows.all.find() function to return the row? since we're resetting the grid, we can capture the field value from the grid prior to the reset.
Theres always the old fallback of looping through each row in the grid, but the Find method seems to be what we're looking for here, isnt it?