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

How save same combo box selection IMMEDIATELY after an selected index change

I am using a custom user control as a combo box drop down (from your DropDownUserCell sample).

I have a requirement to save the user selection immediaty an an item is selected from the drop down. I have tried everything and nothin seems to work. The selection is ONLY committed when you navigate to another cell. I need to save the value immediately.

1 Reply

AD Administrator Syncfusion Team February 5, 2007 07:23 PM UTC

Hi James,

You can handle the TableControlCurrentCellCloseDropDown event of the grid and call the CurrentCell.EndEdit method followed by the Table.EndEdit method to commit the selection changes in a Drop Down. Here is a code snippet.

private void gridGroupingControl1_TableControlCurrentCellCloseDropDown(object sender, Syncfusion.Windows.Forms.Grid.Grouping.GridTableControlPopupClosedEventArgs e)
{
if( e.Inner.PopupCloseType == Syncfusion.Windows.Forms.PopupCloseType.Done)
{
e.TableControl.CurrentCell.EndEdit();
e.TableControl.Table.EndEdit();
}
}

Best Regards,
Haneef

Loader.
Live Chat Icon For mobile
Up arrow icon