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

keydown not firing

Thread ID:





103785 May 30,2012 12:08 PM Jun 6,2012 11:37 PM Windows Forms 2
Tags: Grouping
ian bradley
Asked On May 30, 2012 12:08 PM

I've got a GridGroupingControl as the base class of a control. No matter how hard I press the keys on my keyboard, KeyDown is never fired. I've also overridden OnKeyDown, that never fires either. All I'm doing is selecting cells with the mouse to make sure it has focus and then pressing random keys.

Any ideas?

ian bradley
Replied On May 30, 2012 12:35 PM

I'll leave it 10 minutes before posting next time. There's also a GridControlKeyDown event on the grid grouping control. That does fire when I click in the cells. 

Ragamathulla B [Syncfusion]
Replied On June 6, 2012 11:37 PM

Hi Ian,

Thanks for the update.

The ProcessCmdKey override event is fired when key is activated. Please refer to the code which is explains the same.

protected override bool ProcessCmdKey(ref Message msg, Keys keyData)
            int clipboardFlags = GridDragDropFlags.Text | GridDragDropFlags.Styles | GridDragDropFlags.Compose;
            Keys keyCode = keyData & Keys.KeyCode;
            bool controlKeyDown = (Control.ModifierKeys & Keys.Control) != Keys.None;
            if (controlKeyDown && (keyCode == Keys.V))//|| keyCode == Keys.C || keyCode == Keys.X))
            return base.ProcessCmdKey(ref msg, keyData);

Let me know if you have any further concerns.


Ragamathullah B.


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