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.

How to disbale cut/copy in grid

Thread ID:





79106 Jan 21,2009 05:44 AM Jan 27,2009 01:43 AM Windows Forms 1
Tags: GridControl
Prabakaran K
Asked On January 21, 2009 05:44 AM

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 01:43 AM


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.

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.