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.

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

Thread ID:

Created:

Platform:

Replies:

10416 Feb 2,2004 05:02 AM Windows Forms 1
loading
Tags: FAQ
Administrator [Syncfusion]
Asked On February 2, 2004 04:46 AM

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(); }

tomas
Replied On February 2, 2004 05:02 AM

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.

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.

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.

;