How to disbale cut/copy in grid

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.


1 Reply

RC Rajadurai C Syncfusion Team 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


Loader.
Up arrow icon