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. (Last updated on : November 16, 2018).
Unfortunately, activation email could not send to your email. Please try again.
Syncfusion Feedback

how to disable the ctrlV key

Thread ID:

Created:

Updated:

Platform:

Replies:

19287 Sep 22,2004 07:01 PM UTC Sep 22,2004 07:14 PM UTC WinForms 1
loading
Tags: GridControl
Irina
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;
}

CONFIRMATION

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.

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

;