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
close icon

GGC: How to enable backspace in editable foreign key referrenced cell?

I am using grid grouping control, setting for some columns:

columnDescriptor.Appearance.AnyRecordFieldCell.DropDownStyle = GridDropDownStyle.Editable;

This columns are foreign key referrenced to other tables using ForeignKeyReference RelationKind.

The problem is that BackSpace is not working whrn editing such cell. Is there any solution to such task?

Thank you for your help.

1 Reply

AD Administrator Syncfusion Team September 27, 2006 05:49 AM UTC

Hi Konstantin,

You can handle the QueryCellStyleInfo event and set the Style.DropDownStyle property to GridDropDownStyle.Editable in a ForeignKeyCell. See the below code snippet for more details.

private void grid_QueryCellStyleInfo(object sender, GridTableCellStyleInfoEventArgs e)
{
if( e.Style.CellType == "ForeignKeyCell")
{
e.Style.ReadOnly = false;
e.Style.DropDownStyle = GridDropDownStyle.Editable;
}
}

Let me know if this helps.

Best Regards,
Haneef

Loader.
Live Chat Icon For mobile
Up arrow icon