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
Unfortunately, activation email could not send to your email. Please try again.
Syncfusion Feedback

how to disable the ctrlV key

Thread ID:





19287 Sep 22,2004 07:01 PM UTC Sep 22,2004 07:14 PM UTC WinForms 1
Tags: GridControl
Asked On September 22, 2004 07:01 PM UTC

Hi Clay, Could you please help on that: In gdbg_CurrentCellStartEditing() event I set e.Cancel = true if grid has no rows. So I cannot type in the cell, but I can paste using ctrlV and then I get null object reference exception. So how to disable ctrlV? Thanks

Administrator [Syncfusion]
Replied On September 22, 2004 07:14 PM UTC

You can prevent a paste by subscribing to the grid.Model.ClipboardCanPaste event and setting e.Handled = true and doing nothing in your handler.
private void Model_ClipboardCanPaste(object sender, GridCutPasteEventArgs e)
	e.Handled = true;
	e.Result = false;


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.

Please sign in to access our forum

This page will automatically be redirected to the sign-in page in 10 seconds.

Warning Icon 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.Close Icon

Live Chat Icon For mobile
Live Chat Icon