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 can I prevent the grid cell from allowing paste?

You have to handle the PasteCellText event of the GridControl and cancel the event that prevents the cells from allowing paste. This event is not triggered when the current cell is in Edit mode.

C#

VB

When you want to avoid pasting into a cell that is in Edit mode, you can make use of the CurrentCellControlKeyMessage event. In the following code, the paste operation is specified by the shortcut key, Ctrl+V.

C#

VB

Sample Link

CS: Preventing_from_Pate

VB: Preventing_from_Paste

Article ID: Published Date: Last Revised Date: Platform: Control:
762 04/30/2011 02/12/2016 Windows Forms GridControl
Tags:
Did you find this information helpful?
Add Comment
You must log in to leave a comment

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.