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

How to disbale cut/copy in grid

Thread ID:





79106 Jan 21,2009 10:44 AM UTC Jan 27,2009 06:43 AM UTC WinForms 1
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


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);



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

or the page will be automatically redirected to 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