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.

Disable Ctrl+C, Ctrl+V and Ctrl+X

Thread ID:

Created:

Updated:

Platform:

Replies:

15210 Jun 14,2004 04:37 PM Jun 14,2004 05:22 PM Windows Forms 1
loading
Tags: GridControl
Ankur Kalsi
Asked On June 14, 2004 04:37 PM

Is there a property I can use to disable the copy, cut and paste clipboard shortcuts? If not, how else can I do it? Thanks

Administrator [Syncfusion]
Replied On June 14, 2004 05:22 PM

You can turn off clipboard support when there is no active editing cell by setting: this.gridDataBoundGrid1.Model.CutPaste.ClipboardFlags = 0; When a cell is editing, the embedded cell control handles these keys, and you can handle it at that cell level. For example, this code zaps the context menu (that has these short cut keys) for the TextBox cell control. Dim c As Control = Me.grid.CellRenderers("Currency").Control c.ContextMenu = New ContextMenu

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.

;