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

Ctrl-V issue

I have a form with a GDBG on which I have a menu which includes items for Cut, Copy, and Paste. The paste menuitem includes the Ctrl-V shortcut. When paste is clicked the application runs a custom paste routine I have developed. Most of the time this works fine with Ctrl-V as well, since the menu''s shortcut triggers the routine. Sometimes, however, instead of the menu event firing, the grid''s built in paste function fires, bypassing my custom routine. Somehow, I need to ensure that the menu event ALWAYS get''s hit, not the grid''s default ctrl-v event. I tried setting the ClipboardFlags property to disabled, but this prevents pasting altogether, so that won''t work. Suggestions? Jeff

1 Reply

AD Administrator Syncfusion Team May 11, 2005 05:20 PM

One thing you could try is to handle the gridDataBoundGrid1.Model.ClipboardPaste event. In it call your paste code, and set e.Handled = true and e.Result = true.

Loader.
Live Chat Icon For mobile
Up arrow icon