Category / Section
How to invoke CommitCellInfo event of WPF GridControl when selecting an item in dropdown?
1 min read
In WPF GridControl, The ComboBox cell type triggers CommitCellInfo event only when you select an item in dropdown and move to other cells. If you want CommitCellInfo event to notify the changes immediately once you select an item in dropdown, then you can achieve this by calling EndEdit() method for current cell in CurrentCellClosedDropDown event.
Refer the below code for your reference.
C#
grid.CurrentCellClosedDropDown += Grid_CurrentCellClosedDropDown;
private void Grid_CurrentCellClosedDropDown(object sender, Syncfusion.Windows.ComponentModel.SyncfusionRoutedEventArgs args)
{
if(grid.CurrentCell.IsEditing)
{
//To update the cell value
grid.CurrentCell.EndEdit();
}
}
Sample: View sample in GitHub