I am handling the xamDataGrid1_CellChanged in my code behind. When the user changes a combo selection I check the value and I attempt to reset it to another value but the text displayed in the combo cell still displays the old value not matter what I try. The value gets changed but the grid displays the old value until the user enters edit mode again. I have tried all of the following.xamDataGrid1.ExecuteCommand(Infragistics.Windows.DataPresenter.DataPresenterCommands.EndEditModeAndDiscardChanges); CellValuePresenter cvp = CellValuePresenter.FromCell(e.Cell); ValueEditor editor = cvp.Editor; if (!editor.IsInEditMode) { editor.StartEditMode(); ((XamComboEditor)e.Editor).SelectedIndex = 0; editor.Value = e.Editor.OriginalValue; editor.EndEditMode(true, false); // e.Handled = true; }
Hello,
I tried this and it works correctly. When the XamComboEditor enters edit mode, its value is changed to the first one in its items source. I am testing this against the latest service release for 10.1 (10.1.20101.2018)