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
45
How to make autoscroll function of ultragrid be disabled
posted

I need to delete row and add row  in a ultragrid over and over,

in this process,the ultragrid will autoscroll to the end row.

How to make the ultragrid fix at the first row during deleting adding row.

  • 45
    posted

    Im sorry,I solved the problem but not reply here in time.

    solved by code below

    grid.BeginUpdate()

    '' do delete row

    '' do add row

     grid.EndUpdate()

    thank you.

  • 469350
    Verified Answer
    Offline posted

    The grid is probably scrolling because it's synchonizing it's own ActiveRow with the current position of the BindingManager, and the grid will try to scroll the ActiveRow into view whenever it changes.

    So what you can do is set SyncWithCurrencyManager on the grid to false.

  • 242
    posted

    can you post any code you are using here ?