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

Regrading disable the COPY/Cut /Paste Exception

Thread ID:





73782 May 19,2008 12:03 PM UTC May 23,2008 08:22 AM UTC WinForms 1
Tags: GridControl
Asked On May 19, 2008 12:03 PM UTC


Can you tell how can i disable the CUT/Copy/paste exception in GRid control?

I shall be thankful for you.


Jisha Joy [Syncfusion]
Replied On May 23, 2008 08:22 AM UTC

Hi Vicky,

If your intension is to prevent Clipboard Copy/Paste/Cut, this can be achieved by hadling the events ClipboardCanCopy, ClipboardCanCut, ClipboardCanPaste.

Please refer the code:

this.gridControl1.Model.ClipboardCanCopy += new GridCutPasteEventHandler(Model_ClipboardCanCopy);
this.gridControl1.Model.ClipboardCanCut += new GridCutPasteEventHandler(Model_ClipboardCanCut);
this.gridControl1.Model.ClipboardCanPaste += new GridCutPasteEventHandler(Model_ClipboardCanPaste);

void Model_ClipboardCanPaste(object sender, GridCutPasteEventArgs e)
e.Handled = true;
e.Result = false;

void Model_ClipboardCanCut(object sender, GridCutPasteEventArgs e)
e.Handled = true;
e.Result = false;

void Model_ClipboardCanCopy(object sender, GridCutPasteEventArgs e)
e.Handled = true;
e.Result = false;

Please let me know if this helps.



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