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.

windows datagrid scrooling

Thread ID:





1045 Sep 17,2002 05:49 AM Sep 17,2002 06:21 PM Windows Forms 1
Tags: FAQ
Administrator [Syncfusion]
Asked On September 17, 2002 05:49 AM

how can i cath windows datagrid's horizontal or vertical scrooling events?

Clay Burch [Syncfusion]
Replied On September 17, 2002 06:21 PM

You can catch the DataGrid.Scroll event and then use GetChildAtPoint to identify which scrolbar it is.
private void dataGrid1_Scroll(object sender, System.EventArgs e)
	object o = this.dataGrid1.GetChildAtPoint(this.dataGrid1.PointToClient(Control.MousePosition));
	VScrollBar vScroll = o  as VScrollBar;
	if(vScroll != null)


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.