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. (Last updated on: November 16, 2018).
Unfortunately, activation email could not send to your email. Please try again.
Syncfusion Feedback

Control-V sometimes ignored in bound grid?

Thread ID:





35307 Sep 28,2005 12:13 AM UTC Sep 28,2005 09:29 AM UTC WinForms 1
Tags: GridControl
Jan Eugenides
Asked On September 28, 2005 12:13 AM UTC

We have a rather complex bound grid, and most of the time pressing Control-V will trigger the various paste events, as it should. However, in some circumstances it doesn''t. After considerable staring and tracing through the code (both ours and yours), we''ve been unable to determine the cause. I doubt this is something we can recreate in a simple project. So, all I''m hoping for is that you folks can point me to the place in your code where the Control-V is handled, so that I can hopefully figure out what it is that we''re doing that prevents that from happening. We have a context menu attached to the grid, and the failure of Control-V usually happens after that menu has been displayed. The situation fixes itself if we do a Paste using the menu, rather than Control-V, but... Anyway, I''m grasping at straws, but can you fill me in on how the grid grabs and recognizes the Control-V in normal circumstances? Thanks, Jan

Administrator [Syncfusion]
Replied On September 28, 2005 09:29 AM UTC

Hi Jan, +V is captured in the GridControlBase.OnKeyDown() to do the paste. \\Windows\Grid.Windows\Src\Base\Control\GridControlBase.cs protected override void OnKeyDown(KeyEventArgs e) { /// /// /// case Keys.V: // +V if (controlKeyDown && !menuKeyDown) { if (Model.CutPaste.CanPaste()) { if (!CurrentCell.HasCurrentCell || CurrentCell.NotifyChanging()) Model.CutPaste.Paste(); } isHandled = true; } break; // Just place a break point to see if this is being hit. Best regards, Jay N


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