How to save ComboBox cell value instantly after the dropdown is closed?
In order to save the ComboBox cell value immediately after the dropdown is closed, the SaveCellInfo event must be triggered. To initiate the SaveCellInfo event, EndEdit has to be called in the CurrentCellCloseDropDown event.
this.gridControl1. CurrentCellCloseDropDown += gridControl1_CurrentCellCloseDropDown;
void gridControl1_CurrentCellCloseDropDown(object sender, PopupClosedEventArgs e)
{
this.gridControl1.CurrentCell.EndEdit();
}AddHandler Me.gridControl1.CurrentCellCloseDropDown, AddressOf gridControl1_CurrentCellCloseDropDown
Private Sub gridControl1_CurrentCellCloseDropDown(ByVal sender As Object, ByVal e As PopupClosedEventArgs)
Me.gridControl1.CurrentCell.EndEdit()
End SubThe output is
as follows:

Sample Link:
C#: Save_ComboBox_Cellvalue_CS
VB: Save_ComboBox_Cellvalue_VB
Conclusion
I hope you enjoyed learning about how to save the ComboBox cell value instantly after the dropdown is closed.
You can refer to our WinForms GridControl feature tour page to know about its other groundbreaking feature representations and WinForms GridControl documentation, and how to quickly get started with configuration specifications.
For current customers, you can check out our components from the License and Downloads page. If you are new to Syncfusion, you can try our 30-day free trial to check out our other controls.
If you have any queries or require clarification, please let us know in the comments section below. You can also contact us through our support forums, Direct-Trac, or feedback portal. We are always happy to assist you!