I have a wingrid that I use a UltraDropDown editor for the cell input. I am getting a error from the control when I try to leave the form _ effectively forcing a loss of focus on the grid and therefore the editor control. I am unable to debug this because the error appears to be happening within the control. Error information:
{"Object reference not set to an instance of an object."}
[System.NullReferenceException]: {"Object reference not set to an instance of an object."}
Data: {System.Collections.ListDictionaryInternal}
HelpLink: null
InnerException: null
Message: "Object reference not set to an instance of an object."
Source: "Infragistics2.Win.v7.1"
StackTrace: at Infragistics.Win.Utilities.IsActiveControlHelper(Control control, IContainerControl container)at Infragistics.Win.Utilities.IsActiveControl(Control control)at Infragistics.Win.Utilities.SetFocusToOwnerIfActive(Control ownerControl, Control childControl)at Infragistics.Win.EditorWithText.OnBeforeExitEditMode(Boolean& cancel, Boolean forceExit, Boolean applyChanges)at Infragistics.Win.EditorWithCombo.OnBeforeExitEditMode(Boolean& cancel, Boolean forceExit, Boolean applyChanges)at Infragistics.Win.EmbeddableEditorBase.ExitEditMode(Boolean forceExit, Boolean applyChanges)at Infragistics.Win.UltraWinGrid.UltraGridCell.ExitEditMode(Boolean cancellingEditOperation, Boolean forceExit)at Infragistics.Win.UltraWinGrid.UltraGridCell.ExitEditMode()at Infragistics.Win.UltraWinGrid.UltraGrid.InternalLostFocus(Boolean scrolling)at Infragistics.Win.UltraWinGrid.UltraGrid.OnLeave(EventArgs e)at System.Windows.Forms.Control.NotifyLeave()at System.Windows.Forms.ContainerControl.UpdateFocusedControl()
TargetSite: {Boolean IsActiveControlHelper(System.Windows.Forms.Control, System.Windows.Forms.IContainerControl)}
Make sure you have the latest Hot Fix. If that doesn't help, you should Submit an incident to Infragistics Developer Support
I was able to finally fix this. Before leaving the grid and clearing the control I call a PerformAction(UltraGridAction.ExitEditMode) which forces my logic to run first.
Thanks for the quick response!