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 to disable the ctrlV key

Thread ID:





19287 Sep 22,2004 03:01 PM Sep 22,2004 03:14 PM Windows Forms 1
Tags: GridControl
Asked On September 22, 2004 03:01 PM

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 03:14 PM

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.

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.