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

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

Thread ID:





23048 Jan 4,2005 05:30 AM UTC Jun 1,2007 04:04 PM UTC WinForms 5
Tags: Grouping
Administrator [Syncfusion]
Asked On January 4, 2005 05:30 AM UTC

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 07:02 AM UTC

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 11:17 PM UTC

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

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

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 June 1, 2007 12:31 AM UTC

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 04:04 PM UTC

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.

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