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.

Scrolling in GridControl with the Mouse Wheel

Thread ID:

Created:

Updated:

Platform:

Replies:

53575 Dec 15,2006 01:11 PM Dec 18,2006 12:58 AM Windows Forms 1
loading
Tags: GridControl
Mitch Todd
Asked On December 15, 2006 01:11 PM

Hi,
I have some very performance-hindering operations I need to complete in my GridControl, and I am trying to limit the number of times I perform these operations to the absolute minimum. For example, I need to call particular function when a scrolling operation is finished, and this works quite well when the user uses the scrollbar on the right side (vertical) to perform the scrolling. I obviously, in this case, subscribe to the VerticalScroll event, and wait till I get an "EndScroll" argument. Now, I am at a loss for how to determine (only ONCE, and at the very end of the scroll) when the user has scrolled with the Mouse Wheel. Can you please point me in the right direction on this? Thanks alot ahead of time...

Mitch

Administrator [Syncfusion]
Replied On December 18, 2006 12:58 AM

Hi Mitch,

Try handling the Gird.TopRowIndexChagned event to detect the (TopRowIndex) scrollposition changes in a Grid. Here is a code snippet

private void gridControl1_TopRowChanged(object sender, Syncfusion.Windows.Forms.Grid.GridRowColIndexChangedEventArgs e)
{
Console.WriteLine("Saved RowIndex : {1} ", e.SavedValue );
}

Best Regards,
Haneef

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.

;