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. Image for the cookie policy date
Unfortunately, activation email could not send to your email. Please try again.
Syncfusion Feedback

Problem with scrolling datagrid - lost focus if another object (button) in form

Thread ID:




10416 Feb 2,2004 10:02 AM UTC WinForms 1
Tags: FAQ
Administrator [Syncfusion]
Asked On February 2, 2004 09:46 AM UTC

Sorry, I found it myself. But maybe it''ll help somebody else... The solution is to add following code to onScroll event: private void dataGrid1_Scroll(object sender, System.EventArgs e) { dataGrid1.Focus(); }

Replied On February 2, 2004 10:02 AM UTC

Please help me with this: When scrolling datagrid with mousewheel and another object is on the form (f.e. button), datagrid lost focus when the selected cell is out of displayed area in datagrid - so the scrolling is disabled.


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

This page will automatically be redirected to the 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

Live Chat Icon For mobile
Live Chat Icon