Your Privacy Matters: We use our own and third-party cookies to improve your experience on our website. By continuing to use the website we understand that you accept their use. Cookie Policy
170
find row in ultragrid by column value
posted

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

Parents
No Data
Reply
  • 469350
    Offline posted

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

Children