Syncfusion AI Assistant

How can I help you?

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.

//Code...
this.gridControl1.CurrentCellCloseDropDown += new PopupClosedEventHandler(grid_CurrentCellCloseDropDown);
void grid_CurrentCellCloseDropDown(object sender, PopupClosedEventArgs e) 
{
    this.grid.CurrentCell.EndEdit();
}
//Code...
'code...
AddHandler gridControl1.CurrentCellCloseDropDown, AddressOf grid_CurrentCellCloseDropDown
Private Sub grid_CurrentCellCloseDropDown(ByVal sender As Object, ByVal e As PopupClosedEventArgs)
Me.grid.CurrentCell.EndEdit()
End Sub
'code...