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

How to disbale cut/copy in grid

Thread ID:

Created:

Updated:

Platform:

Replies:

79106 Jan 21,2009 10:44 AM UTC Jan 27,2009 06:43 AM UTC WinForms 1
loading
Tags: GridControl
Prabakaran K
Asked On January 21, 2009 10:44 AM UTC

I want to disable cut/copy/paste option in datagrid. Users should not able to copy value from one cell to another cell and even paste outside.


Rajadurai C [Syncfusion]
Replied On January 27, 2009 06:43 AM UTC

Hi,

Thanks for your interest in Syncfusion products.

You can disable cut/copy/paste operations in grid by handling the events ClipboardCanCut, ClipboardCanCopy, ClipboardCanPaste with the Handled property set to true and Result property set to false.

this.gridControl1.ClipboardCanCut += new GridCutPasteEventHandler(gridControl1_ClipboardCanCut);
this.gridControl1.ClipboardCanCopy += new GridCutPasteEventHandler(gridControl1_ClipboardCanCopy);
this.gridControl1.ClipboardCanPaste += new GridCutPasteEventHandler(gridControl1_ClipboardCanPaste);


Regards,
Rajadurai


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

;