Scrolling in GridControl with the Mouse Wheel

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

1 Reply

AD Administrator Syncfusion Team December 18, 2006 05:58 AM UTC

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

Loader.
Up arrow icon