How to save ComboBox cell value instantly after the dropdown is closed

11 Jun 20211 minute to read

To save ComboBox cell value immediately after the dropdown is closed; SaveCellInfo event must be triggered. To initiate SaveCellInfo event, EndEdit() has to be called. Also, in the CurrentCellCloseDropDown event CurrentCell.EndEdit() is called.

this.gridControl1.CurrentCellCloseDropDown += new PopupClosedEventHandler(grid_CurrentCellCloseDropDown);
void grid_CurrentCellCloseDropDown(object sender, PopupClosedEventArgs e) 
AddHandler gridControl1.CurrentCellCloseDropDown, AddressOf grid_CurrentCellCloseDropDown
Private Sub grid_CurrentCellCloseDropDown(ByVal sender As Object, ByVal e As PopupClosedEventArgs)
End Sub