Since upgrading from NetAdvantage 3.3 to NetAdvantage for .NET Vol 1 for CLR 1.x my windows application keeps producing the following unhandled exception:
System.Exception: Internal error: can't convert to DestinationValue. at Infragistics.Win.EmbeddableEditorBase.GetDataFilteredDestinationValue(ConversionDirection direction, EmbeddableEditorOwnerBase owner, Object ownerContext) at Infragistics.Win.CheckEditor.get_Value() at Infragistics.Win.CheckEditor.get_CurrentEditText() at Infragistics.Win.UltraWinGrid.UltraGridCell.CommitEditValue(Boolean& stayInEdit, Boolean fireDataError, Boolean forceDontThrowException, Boolean dontStoreInUndoHistory) at Infragistics.Win.UltraWinGrid.UltraGridCell.CommitEditValue(Boolean& stayInEdit, Boolean fireDataError, Boolean forceDontThrowException) at Infragistics.Win.UltraWinGrid.UltraGridCell.CommitEditValue(Boolean& stayInEdit, Boolean fireDataError) at Infragistics.Win.UltraWinGrid.UltraGridLayout.OnEditorBeforeExitEditMode(Object sender, BeforeExitEditModeEventArgs e) at Infragistics.Win.EmbeddableEditorBase.OnBeforeExitEditMode(Boolean& cancel, Boolean forceExit, Boolean applyChanges) at Infragistics.Win.CheckEditor.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.ClearActiveCell(Boolean invalidate, Boolean shutdown) at Infragistics.Win.UltraWinGrid.UltraGrid.OnActiveRowCleared(Boolean update) at Infragistics.Win.UltraWinGrid.UltraGridBase.SetActiveRow(UltraGridRow row, Boolean scrollIntoView) at Infragistics.Win.UltraWinGrid.UltraGridCell.Activate() at Infragistics.Win.UltraWinGrid.UltraGridCell.SetFocusAndActivate(Boolean byMouse, Boolean enterEditMode, Boolean byTabKey) at Infragistics.Win.UltraWinGrid.UltraGridCell.SetFocusAndActivate(Boolean byMouse, Boolean enterEditMode) at Infragistics.Win.UltraWinGrid.CellUIElementBase.OnEmbeddableElementMouseDown(Object sender, EmbeddableMouseDownEventArgs e) at Infragistics.Win.UltraWinGrid.GridEmbeddableEditorOwnerInfoBase.OnEditorMouseDown(EmbeddableUIElementBase embeddableElem, EmbeddableMouseDownEventArgs e) at Infragistics.Win.EmbeddableUIElementBase.RaiseMouseDownEvent(UIElement sender, MouseEventArgs mouseArgs, Boolean isButton) at Infragistics.Win.CheckEditorCheckBoxUIElement.OnMouseDown(MouseEventArgs e, Boolean adjustableArea, UIElement& captureMouseForElement) at Infragistics.Win.ControlUIElementBase.ProcessMouseDownHelper(Object sender, MouseEventArgs e) at Infragistics.Win.ControlUIElementBase.ProcessMouseDown(Object sender, MouseEventArgs e) at Infragistics.Win.Utilities.ProcessEvent(Control control, ProcessEvent eventToProcess, EventArgs e) at Infragistics.Win.UltraControlBase.OnMouseDown(MouseEventArgs e) at System.Windows.Forms.Control.WmMouseDown(Message& m, MouseButtons button, Int32 clicks) at System.Windows.Forms.Control.WndProc(Message& m) at System.Windows.Forms.ControlNativeWindow.OnMessage(Message& m) at System.Windows.Forms.ControlNativeWindow.WndProc(Message& m) at System.Windows.Forms.NativeWindow.Callback(IntPtr hWnd, Int32 msg, IntPtr wparam, IntPtr lparam)
Does anyone have any ideas as to how i can resolve this?
Thanks!
Thanks for the reply but for me this had to do with an UltraCombo that was bound to a collection in which the object wasn't yet in the list to be selected.
It would be nice if the Infragistics control would give more information about which control was having the problem! Currently it just pops up a message box without any indication of what control was causing the error. This makes it very hard to debug :(
Support was able to help identify and resolve this issue for me.
By default, NetAdvantage 3.3 set the MaxValue and MinValue for checkboxes. This worked fine when using NetAdvantage 3.3 but when upgrading to NetAdvantage for .NET Vol 1 for CLR 1.x it resulted in the above exception. Removing the code that sets the MaxValue and MinValue (in the auto-generated code section of your class) resolved the issue.
Hope this helps.
I'm getting this error as well... with latest hotfix for infragistics2 Win v8.1.
How do we go about debugging something like this?