Copy Paste in the Grid Cell

Hi Can i stop the end user to paste vaule in the cell if there is some value in the clipboard. Say the user used CTRL+C to capture the value in the clipboard and then does CTRL+V in the Grid Cell . I want to restrict the user.If there is some code snippet please provide the same in the VB.NET

2 Replies

AD Administrator Syncfusion Team June 21, 2005 10:37 PM UTC

Subscribe to the gridControl1.ClipboardCanPaste event (or gridDataBoundGrid1.Model.ClipboardCanPaste). In your handler, have the code. e.Handled = true e.Result = false


LL Lokesh Luthra June 21, 2005 11:00 PM UTC

Cheers Clay :) Thanx >Hi >Can i stop the end user to paste vaule in the cell if there is some value in the clipboard. >Say the user used CTRL+C to capture the value in the clipboard and then does CTRL+V in the Grid Cell . I want to restrict the user.If there is some code snippet please provide the same in the VB.NET

Loader.
Up arrow icon