Your Privacy Matters: We use our own and third-party cookies to improve your experience on our website. By continuing to use the website we understand that you accept their use. Cookie Policy
800
combocell not displaying value
posted

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;
            }

  • 69686
    posted

    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)

    WpfApplication12.zip
  • 45
    posted

    This is the same problem I am sttruggling with.  I tried to get help from Infragistics but no clear answer yet. Promised to give me an example and hope they will soon. But I can't wait too long.