End edit on combo box value changed

Hi,

For a column with combobox cells, is there a way to end the cell edit as soon as a value in the combobox is selected?


2 Replies 1 reply marked as answer

ZI Zia February 21, 2025 02:13 PM UTC

I think I have solved it:

MyDataGrid.CurrentCellDropDownSelectionChanged += (sender, args) =>
{
MyDataGrid.SelectionController.CurrentCellManager.EndEdit(false);
};

Marked as answer

SG Santhosh Govindasamy Syncfusion Team February 24, 2025 02:22 PM UTC

Hi Zia,

We are glad to know that the reported problem has been resolved at your end. Please let us know if you have any further queries on this. We are happy to help.


We would like to inform you that the EndEdit method ends the edit operation on the current cell, similar to ending the edit transaction and saving the pending changes by calling the CommitEdit method based on the parameter passed to EndEdit.

Regards,
Santhosh.G
 




Loader.
Up arrow icon