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.

GridGrouping Deleting text value cell.

Thread ID:





66897 Aug 4,2007 08:45 AM Aug 6,2007 02:29 PM Windows Forms 1
Tags: GridControl
Amol Choudhari
Asked On August 4, 2007 08:45 AM


If user is entering text value in this grid cell and selects some portion of writen text and press DELETE button, he expects to delete the selected portion of text.

if he has not selected some portion of text and press DELETE button then whole written text should be deleted.

For eg. he types 'AMOLCHOUDHARI', he may select HARI by shift button and DELETE or he may want to delete whole text by pressing DELETE button.

Please help!

Amol Choudhari

Which event is helpful for this. H

haneefm [Syncfusion]
Replied On August 6, 2007 02:29 PM

Hi Amol,

You can handle the TableControlCurrentCellKeyDown event and set ControlText to string.Empty when the DELETE key is pressed. Below is a code snippet

void gridGroupingControl1_TableControlCurrentCellKeyDown(object sender, GridTableControlKeyEventArgs e)
if (e.Inner.KeyCode == Keys.Delete)
e.Inner.Handled = true;
e.TableControl.CurrentCell.Renderer.ControlText = string.Empty;

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.