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
255
Autorefresh with wingrid
posted

Hi, 

I use a wingrid which  auto refreshes every 5 seconds.The problem that I face is when the user scrolls down the grid, suddenly the grid refreshes and moves back up to the top.I want the grid to stay in the same scroll area after refreshing.I set the the first row as active row  after every refresh.

So how to save the current scroll position and load the same back after refresh?Or can anyone suggest a better solution?

Thanks,

Abja

Parents
  • 195
    posted

    I used this in the past after refreshing...

    grid.Rows.ScrollCardIntoView(grid.ActiveRow);

    This takes a row that it scrolls into view you'll need to know where you are in the grid as your setting you active row to the first...

Reply Children