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.

Ctrl-V issue

Thread ID:

Created:

Updated:

Platform:

Replies:

28855 May 11,2005 02:40 PM May 11,2005 06:20 PM Windows Forms 1
loading
Tags: GridControl
Jeff
Asked On May 11, 2005 02:40 PM

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

Administrator [Syncfusion]
Replied On May 11, 2005 06: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.

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.

;