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. (Last updated on: November 16, 2018).
Unfortunately, activation email could not send to your email. Please try again.
Syncfusion Feedback

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

Thread ID:

Created:

Updated:

Platform:

Replies:

55802 Feb 5,2007 03:17 PM UTC Feb 5,2007 07:23 PM UTC WinForms 1
loading
Tags: GridControl
James Blibo
Asked On February 5, 2007 03:17 PM UTC

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.

Administrator [Syncfusion]
Replied On 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

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.

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

;