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
616
Update datasource
posted

Hi.

 I update a datasource after pressing a row. This data appears in an ChildBand of a row. At updating the area of visibility of a grid is displaced in the beginning. How it to avoid? How to make that remained that row on which is visible there was a cursor?

  • 469350
    Offline posted

    If you are updating the grid's data source, and it's causing the grid to scroll, then it must be because the position of the CurrencyManager is changing. So you might want to look into what you are doing to the data source to make the position change. 

    If you just want to scroll the grid row back into view, you can use the grid.ActiveRowScrollRegion. There are methods like ScrollRowIntoView and properties like FirstRow which you can use to control the position of the grid.