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.
Syncfusion Feedback

windows datagrid scrooling

Thread ID:

Created:

Updated:

Platform:

Replies:

1045 Sep 17,2002 09:49 AM UTC Sep 17,2002 10:21 PM UTC Windows Forms 1
loading
Tags: FAQ
Administrator [Syncfusion]
Asked On September 17, 2002 09:49 AM UTC

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

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

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)
		Console.WriteLine("VScroll");
	else
		Console.WriteLine("HScroll");
}

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.

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

;