Articles in this section
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

 

Did you find this information helpful?
Yes
No
Help us improve this page
Please provide feedback or comments
Comments (0)
Please sign in to leave a comment
Access denied
Access denied