After upgrading my project I get an error on some grids after i click a cell and then close the form that the grid is on. I cannot find the cause anywhere. I just single click a cell that is readonly, then close the form with the windows X and the error comes up. A try Catch in the form closing doesnt catch it.
This is critical so please let me know quickly if you have any clue what the problem is.
The error is:
Object reference not set to an instance of an object.
StackTrace: at Infragistics.Win.UltraWinGrid.UltraGridColumn.get_IsFirstVisibleColumnOnLevel()
at Infragistics.Win.UltraWinGrid.UltraGridCell.CalculateCellOverlayRect(UIElement element, Int32 borderWidth, Boolean calculateInvalidRect)
at Infragistics.Win.UltraWinGrid.UltraGridCell.InvalidateElem(UIElement element, Boolean recalcRects)
at Infragistics.Win.UltraWinGrid.GridItemBase.InvalidateItem(RowScrollRegion rsr, ColScrollRegion csr, Boolean recalcRects)
at Infragistics.Win.UltraWinGrid.GridItemBase.InvalidateItem()
at Infragistics.Win.UltraWinGrid.UltraGrid.InvalidateActiveRowCell()
at Infragistics.Win.UltraWinGrid.UltraGrid.OnLostFocus(EventArgs e)
at System.Windows.Forms.Control.WmKillFocus(Message& m)
at System.Windows.Forms.Control.WndProc(Message& m)
at System.Windows.Forms.Control.ControlNativeWindow.OnMessage(Message& m)
at System.Windows.Forms.Control.ControlNativeWindow.WndProc(Message& m)
at System.Windows.Forms.NativeWindow.Callback(IntPtr hWnd, Int32 msg, IntPtr wparam, IntPtr lparam)
There is also another error I get when trying to open the Designer for the form.
Object of type 'Infragistics.Win.UltraWinGrid.UltraGrid' cannot be converted to type 'Infragistics.Win.UltraWinGrid.UltraGrid'.
Just in case anyone else has this problem I am updating this post..
Add a FormClosing event handler and in there set UltraGrid1.Datasource=null
This works for me until the issue is resolved.
Hi , 1. Leaving empty your license file it shouldn’t be a problem, but if you need to repopulate them you should add the same components in the designer. 3. If you have any error that you got runtime, this defiantly is related to implementation of sequence of event handling that probably is changed in latest version4. About the rows selection performance I never see that, probably is also related to some implementation of the gird, or datasource issue.I also recommend you use read breaking changes section :http://help.infragistics.com/Help/NetAdvantage/WinForms/2009.2/CLR2.0/html/Win_Known_Issues_and_Breaking_Changes.htmlI hope this make sense.Sincerely,DimiDeveloper Support EngineerInfragistics, Inc.
Ok, I uninstalled the infragistics controls and reinstalled them without the hotfix. Deleted all references, bin, license, etc.
1. Is it supposed to repopulate my license file? because it stayed blank after I deleted the references.
2. I am no longer getting the designer errors or the other errors.
3. I am still getting an error when the wingrid has focus and the form closes.
4. When I click a row in the grid it has a second delay before it highlights that row. It never did that with version 8.1.
Hello,To answer you on the first question:Yes the both version should be in the GAC, if you install the service release. The idea is to have it both is to have option to switch to the original if you decide or you have other application that don’t need to use newer version for some reason.About the issue, is it possible to give me your sample where I can observe this behavior. I believe that this is reference issue from the message you give me but, it may be a issue too. I need to investigate it on a real scenario. One think I forgot to mentioned is that is good to have UseSpecificVersion set to true, if you are using service release. Because if you didn’t reference all the dependent dll they are automatically loaded runtime when they are used, and for some reason you may load the base version.I am going to create for you support case for this and we can continue investigate it further and will contact with you shortly.Sincerely,DimiDeveloper Support EngineerInfragistics, Inc.
I deleted everything. I was already pulling from the GAC. I have just noticed however that there are 2 of each control in the GAC with the same name, but one is version 1003 and one is 2017. Are both the release and the hotfix dll supposed to be in the GAC? In the meantime, I am removing the whole release and reinstalling it. There is still one issue that I need clarified that I dont believe has anything to do with the references. In another project, things work fine so far except for the form closing event. I need to set focus to a control other than the wingrid on formclosing or else a null object reference occurs if the grid has focus on formclosing.