How to save ComboBox cell value instantly after the dropdown is closed
9 Dec 2019 / 1 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...
Was this page helpful?
Yes
No
Thank you for your feedback!
Thank you for your feedback and comments. We will rectify this as soon as possible!
An unknown error has occurred. Please try again.
Help us improve this page