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 : Nov 16th 2018).
Unfortunately, activation email could not send to your email. Please try again.
Syncfusion Feedback

Regrading disable the COPY/Cut /Paste Exception

Thread ID:

Created:

Updated:

Platform:

Replies:

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

Hi


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


I shall be thankful for you.


Regards
Vicky


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.

Regards,
Jisha



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.

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

;