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!
I'm getting this error as well... with latest hotfix for infragistics2 Win v8.1.
How do we go about debugging something like this?
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.