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 do I prevent the BACKSPACE key from deleting the contents of the cell

Thread ID:

Created:

Updated:

Platform:

Replies:

59479 Apr 13,2007 11:31 AM Apr 16,2007 02:56 PM Windows Forms 1
loading
Tags: Grouping
James Blibo
Asked On April 13, 2007 11:31 AM

I have tried the snippet below, but it only works for the DELETE key, it does not work for the backspace key. I have even tried
e.Inner.KeyCode == Keys.Back but that doesn't work either.

private void gridGroupingControl1_TableControlCurrentCellKeyDown(object sender, Syncfusion.Windows.Forms.Grid.Grouping.GridTableControlKeyEventArgs e)
{
//log.Warn(e.Inner.KeyData);
//do not allow delete key to delete contents of cell
if (e.Inner.KeyData == Keys.Delete || e.Inner.KeyData == Keys.Back)
{
e.Inner.Handled = true;
return;
}
}

haneefm [Syncfusion]
Replied On April 16, 2007 02:56 PM

Hi James,

We were not able to reproduce the issue here. Is it possible for you to upload us a sample or modify the GGCKeyBackSpace.zip sample to reproduce the issue here? This will help us to analyse the issue further.

Best regards,
Haneef

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.

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.

;