We use cookies to give you the best experience on our website. If you continue to browse, then you agree to our privacy policy and cookie policy. (Last updated on: November 16, 2018).
Unfortunately, activation email could not send to your email. Please try again.
Syncfusion Feedback

Save grid scroll position?

Thread ID:





49726 Sep 25,2006 07:25 PM UTC Sep 27,2006 11:21 AM UTC WinForms 3
Tags: GridControl
Nick M
Asked On September 25, 2006 07:25 PM UTC

I am using a databound grid control and would like to restore the control''s scroll position after refreshing and re-populating the grid.

I have been playing with WindowScrolling events and the ScrollWindow API, but have not been successful. Any ideas?

Administrator [Syncfusion]
Replied On September 26, 2006 05:51 AM UTC

Hi Nick,

Please refer the below forum thread for more details.


Administrator [Syncfusion]
Replied On September 26, 2006 09:47 PM UTC

Hi Haneef,

This works pretty well. Ideally, however, I would like to return the previous scroll position without requiring the user to select a cell. Is this possible?


Administrator [Syncfusion]
Replied On September 27, 2006 11:21 AM UTC

Hi Nick,

You can get the position of vertical scroll bar using the GetCurrentVScrollPixelPos() method and set the position of vertical scroll bar using the SetCurrentVScrollPixelPos() method. Using these methods you can able to move the ScrollBar as required. Please refer to the attached sample for more details.


Let me know if this helps.

Best Regards,


This post will be permanently deleted. Are you sure you want to continue?

Sorry, An error occured while processing your request. Please try again later.

Please sign in to access our forum

or the page will be automatically redirected to sign-in page in 10 seconds.

Warning Icon You are using an outdated version of Internet Explorer that may not display all features of this and other websites. Upgrade to Internet Explorer 8 or newer for a better experience.Close Icon