We use cookies to give you the best experience on our website. If you continue to browse, then you agree to our privacy policy and cookie policy. Image for the cookie policy date
Unfortunately, activation email could not send to your email. Please try again.
Syncfusion Feedback

Grid cell combo box selection change

Thread ID:





141775 Jan 3,2019 06:12 PM UTC Jan 4,2019 11:15 AM UTC WPF 3
Tags: GridControl
Jonathan Bleeker
Asked On January 3, 2019 06:12 PM UTC


How would I access a combo box cell's data when the combo box selection changes without having to leave the cell and trigger the CurrentCellEditingComplete event? If I try to access the data on the CurrentCellChanged event, I can only see the old data in the model. Not the new data.

Replied On January 4, 2019 10:35 AM UTC

Any update on this?

Arulraj A [Syncfusion]
Replied On January 4, 2019 11:00 AM UTC

Hi Jonathan, 

Thanks for using Syncfusion product. 

You can use the CurrentCell.Renderer.ControlValue to get the cell’s current value when using CurrentCellChanged event without moving to next cell. 

gridControl.CurrentCellChanged += GridControl_CurrentCellChanged; 
private void GridControl_CurrentCellChanged(object sender, Syncfusion.Windows.ComponentModel.SyncfusionRoutedEventArgs args) 
    GridControl g = (GridControl) sender; 
    string cellValue = ""; 
    if (g != null) 
        GridCurrentCell cc = g.CurrentCell; 
        GridStyleInfo style = g.Model[cc.RowIndex, cc.ColumnIndex]; 
        switch (style.CellType) 
            case "ComboBox": 
                cellValue = $"Combo Changed[{cc.RowIndex},{cc.ColumnIndex}] NewValue={cc.Renderer.ControlValue} OldValue={g.Model[cc.RowIndex,cc.ColumnIndex].CellValue}"; 

Arulraj A 

Replied On January 4, 2019 11:15 AM UTC

Perfect. Thanks a bunch!


This post will be permanently deleted. Are you sure you want to continue?

Sorry, An error occured while processing your request. Please try again later.

Please sign in to access our forum

This page will automatically be redirected to the sign-in page in 10 seconds.

Warning Icon You are using an outdated version of Internet Explorer that may not display all features of this and other websites. Upgrade to Internet Explorer 8 or newer for a better experience.Close Icon

Live Chat Icon For mobile
Live Chat Icon