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

Grid Scroll

Thread ID:





69681 Nov 7,2007 08:33 PM UTC Nov 8,2007 04:27 PM UTC WinForms 3
Tags: GridControl
Asked On November 7, 2007 08:33 PM UTC


Is there any DataBoundGrid event which fires after Scroll thumb in a grid is dragged and released. The event iam looking should not fire for any other scroll action.


haneefm [Syncfusion]
Replied On November 7, 2007 09:11 PM UTC

Hi Ravi,

Maybe the VScrollBar.Scroll (or HScrollBar.Scroll) event will get you what you need. In that event, you can use e.Type property to detect the scrollbox is being moved by ThumbTrack. Below are the codes:

this.grid.VScrollBar.Scroll += new ScrollEventHandler(VScrollBar_Scroll);

void VScrollBar_Scroll(object sender, ScrollEventArgs e)
if (e.Type == ScrollEventType.ThumbTrack)
Console.WriteLine("Scrollbox is being moved by ThumbTrack");

Let me know if this helps.

Best regards,

Replied On November 8, 2007 03:59 PM UTC

Hi Haneef,

Thanks for your reply, your answer is helpful to me.

How can i move the grid current cell focus to the first visible row and column after the scroll thumb is moved.


Administrator [Syncfusion]
Replied On November 8, 2007 04:27 PM UTC

Try code such as this:

private bool thumbPositionSet = false;
void VScrollBar_Scroll(object sender, ScrollEventArgs e)
if (e.Type == ScrollEventType.ThumbPosition)
thumbPositionSet = true;
else if(e.Type == ScrollEventType.EndScroll && thumbPositionSet)
thumbPositionSet = false;
this.gridControl1.CurrentCell.MoveTo(gridControl1.TopRowIndex, gridControl1.LeftColIndex);


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