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.
Unfortunately, activation email could not send to your email. Please try again.

equal scrolling with shared scrollbars

Thread ID:

Created:

Updated:

Platform:

Replies:

36790 Nov 9,2005 06:36 PM Nov 10,2005 11:45 AM Windows Forms 3
loading
Tags: GridControl
Administrator [Syncfusion]
Asked On November 9, 2005 06:36 PM

I have 2 GridControls using a shared scroll bar. One grid is on top of the other. The top grid 1 column is exactly double the width of the bottom grids columns. So, 2 columns in the bottom correspond to the 1 column in the top grid. When I scroll, the both scroll 1 column at a time and obviously get off aligned. How do I make it so that every click of the scroll bar will scroll the bottom grid twice and the top grid only once? Thanks.

Administrator [Syncfusion]
Replied On November 9, 2005 06:49 PM

One way you could do something like this is to only use the scrollbar for one of the grids, say the top one. Then you can subscribe to the TopRowChanged event on this top grid. In your event handler, explicitly set the grid.TopRowIndex of the bottom grid to the appropriate value based on the value of the TopRowIndex for the top grid.

Administrator [Syncfusion]
Replied On November 9, 2005 06:51 PM

For horizontal scrolling, you can use the LeftColChanging event and the grid.LeftColIndex.

Administrator [Syncfusion]
Replied On November 10, 2005 11:45 AM

Thanks, worked perfectly. >For horizontal scrolling, you can use the LeftColChanging event and the grid.LeftColIndex.

CONFIRMATION

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.

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.

;