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. Image for the cookie policy date
close icon

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.
Live Chat Icon For mobile
Up arrow icon