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.

Is delete a function in the GGC ?? how can i disable it ??

Thread ID:





23048 Jan 4,2005 12:30 AM Jun 1,2007 12:04 PM Windows Forms 5
Tags: Grouping
Administrator [Syncfusion]
Asked On January 4, 2005 12:30 AM

when i click on "delete", the content in GGC clear even there''s no codes inside the sub TableControlCurrentCellKeyDown() If i remove the sub, the problem solved, but I do need to have some coding inside TableControlCurrentCellKeyDown(). How can I disable the delete function ?

Administrator [Syncfusion]
Replied On January 4, 2005 02:02 AM

In your TableControlCurrentCellKeyDown event, if e.Inner.KeyCode equals Keys.Delete, then try setting e.Inner.Handled = true.

Administrator [Syncfusion]
Replied On January 4, 2005 06:17 PM

Thanks... it works !! But may I know what is it doing ?

Administrator [Syncfusion]
Replied On January 5, 2005 02:44 AM

By setting e.Handled to true, you are telling the tableControl not to do further processing on the Delete key. And this prevents the clearing of the cells.

James Blibo
Replied On May 31, 2007 08:31 PM

I want to siable the backspace key from not deleting the contents of the cell, like the delete key, but it is not working...
//do not allow delete key to delete contents of cell
if (e.Inner.KeyCode == Keys.Delete || e.Inner.KeyCode == Keys.Back || e.Inner.KeyData == Keys.Back)
e.Inner.Handled = true;

haneefm [Syncfusion]
Replied On June 1, 2007 12:04 PM

Hi James,

You can TableControlCurrentCellKeyPress event to set e.Inner.Handled = true for BackSpace key to tell the tableControl not to do further processing on the BackSpace key. And this prevents the deleting of the cell text.

private void gridGroupingControl1_TableControlCurrentCellKeyPress(object sender, GridTableControlKeyPressEventArgs e)
if( e.Inner.KeyChar == (char)8 )
e.Inner.Handled = true;

Best regards,


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.