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.

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

Thread ID:

Created:

Updated:

Platform:

Replies:

49783 Sep 26,2006 04:29 PM Sep 27,2006 01:49 AM Windows Forms 1
loading
Tags: GridControl
Konstantin Babiy
Asked On September 26, 2006 04:29 PM

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.

Administrator [Syncfusion]
Replied On September 27, 2006 01:49 AM

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

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.

;