After the last release, one of our infragistics ultragrids in our vb.net program running the latest release of 2015.1 Winforms began having issues loading.
Thank you for your help in advance,
Derek
Below is the exception we receive on load:
Exception: Object reference not set to an instance of an object.
Source: Infragistics4.Win.UltraWinGrid.v15.1
Site: AlignHeaderInFixedHeaderArea
Stack Trace:
at Infragistics.Win.UltraWinGrid.UltraGridGroup.AlignHeaderInFixedHeaderArea(Rectangle& headerRect, Rectangle& fixedHeaders, BandHeaderMetricsCache bandHeaderMetricsCache)
at Infragistics.Win.UltraWinGrid.UltraGridGroup.CalculateHeaderRect(Rectangle& headerRect, Rectangle& fixedHeaderRect, BandHeaderMetricsCache bandHeaderMetricsCache)
at Infragistics.Win.UltraWinGrid.UltraGridColumn.CalculateHeaderRect(Rectangle& rcHeader, Rectangle& prcFixedHeaders, BandHeaderMetricsCache bandHeaderMetricsCache)
at Infragistics.Win.UltraWinGrid.FixedSummaryLineUIElement.GetSummaryLocation(UltraGridColumn column, Int32& x, Int32& width)
at Infragistics.Win.UltraWinGrid.FixedSummaryLineUIElement.PositionChildElements()
at Infragistics.Win.UIElement.VerifyChildElements(ControlUIElementBase controlElement, Boolean recursive)
at Infragistics.Win.UltraWinGrid.RowColRegionIntersectionUIElement.VerifyChildElements(ControlUIElementBase controlElement, Boolean recursive)
at Infragistics.Win.UltraWinGrid.DataAreaUIElement.VerifyChildElements(ControlUIElementBase controlElement, Boolean recursive)
at Infragistics.Win.UltraWinGrid.UltraGridUIElement.VerifyChildElements(ControlUIElementBase controlElement, Boolean recursive)
at Infragistics.Win.UIElement.VerifyChildElements(Boolean recursive)
at Infragistics.Win.UltraWinGrid.UltraGridLayout.GetUIElement(Boolean verify, Boolean forceInitializeRect)
at Infragistics.Win.UltraWinGrid.UltraGridLayout.GetUIElement(Boolean verify)
at Infragistics.Win.UltraWinGrid.UltraGridCell.EnterEditorIntoEditMode(Boolean byMouse)
at Infragistics.Win.UltraWinGrid.UltraGridCell.EnterEditMode(Boolean byMouse, Boolean showingDropDown)
at Infragistics.Win.UltraWinGrid.UltraGridCell.EnterEditMode(Boolean byMouse)
at Infragistics.Win.UltraWinGrid.UltraGridLayout.PerformAction(UltraGridAction actionCode, Boolean shiftKeyDown, Boolean ctlKeyDown)
at Infragistics.Win.UltraWinGrid.UltraGrid.PerformAction(UltraGridAction actionCode, Boolean shift, Boolean control)
at Infragistics.Win.UltraWinGrid.UltraGrid.PerformAction(UltraGridAction actionCode)
at [PROGRAM].[PROJECT].[FILE_NAME}.tabMain_SelectedIndexChanged(Object sender, EventArgs e)
at System.Windows.Forms.TabControl.OnSelectedIndexChanged(EventArgs e)
at System.Windows.Forms.TabControl.WmSelChange()
at System.Windows.Forms.TabControl.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.DebuggableCallback(IntPtr hWnd, Int32 msg, IntPtr wparam, IntPtr lparam)
at System.Windows.Forms.UnsafeNativeMethods.SendMessage(HandleRef hWnd, Int32 msg, IntPtr wParam, IntPtr lParam)
at System.Windows.Forms.Control.SendMessage(Int32 msg, IntPtr wparam, IntPtr lparam)
at System.Windows.Forms.Control.ReflectMessageInternal(IntPtr hWnd, Message& m)
at System.Windows.Forms.Control.WmNotify(Message& m)
at System.Windows.Forms.Control.WndProc(Message& m)
at System.Windows.Forms.ScrollableControl.WndProc(Message& m)
at System.Windows.Forms.UnsafeNativeMethods.CallWindowProc(IntPtr wndProc, IntPtr hWnd, Int32 msg, IntPtr wParam, IntPtr lParam)
at System.Windows.Forms.NativeWindow.DefWndProc(Message& m)
at System.Windows.Forms.Control.DefWndProc(Message& m)
at System.Windows.Forms.Control.WmMouseDown(Message& m, MouseButtons button, Int32 clicks)
at System.Windows.Forms.UnsafeNativeMethods.DispatchMessageW(MSG& msg)
at System.Windows.Forms.Application.ComponentManager.System.Windows.Forms.UnsafeNativeMethods.IMsoComponentManager.FPushMessageLoop(IntPtr dwComponentID, Int32 reason, Int32 pvLoopData)
at System.Windows.Forms.Application.ThreadContext.RunMessageLoopInner(Int32 reason, ApplicationContext context)
at System.Windows.Forms.Application.ThreadContext.RunMessageLoop(Int32 reason, ApplicationContext context)
at System.Windows.Forms.Application.Run(Form mainForm)
at [PROGRAM].modMain.Main()
Is there a way to get the previous hotfix for 14.2? We were unaware of this issue, and went live with a build of our application over the weekend.
Hi Hung,
Yes, the issue happens when you have groups and the last column has a summary. So if you insert a blank column the issue won’t happen. I have created a private case for you, so that you will be notified when the fix is released. The case number is CAS-166472-X8D1P6 and you can view it from the following link:
https://es.infragistics.com/my-account/support-activity
Please let me know if you have any additional questions.
HOw fix, it canges only when summaries column last right on group, you must insert blank Column on last right on group
Hi Alex,
I have created a private case (CAS-165607-G2C0F1) for you in order to notify you when this issue is resolved. You can view your currently active cases from this link:
Getting the same thing went from 14.2 to 15.2. It was fine before the update, but without changing a thing I get the exact same issue as the above, so it is definitely something to do with the update. Anyway around this?
My stack trace is:
at Infragistics.Win.UltraWinGrid.UltraGridGroup.AlignHeaderInFixedHeaderArea(Rectangle& headerRect, Rectangle& fixedHeaders, BandHeaderMetricsCache bandHeaderMetricsCache) at Infragistics.Win.UltraWinGrid.UltraGridGroup.CalculateHeaderRect(Rectangle& headerRect, Rectangle& fixedHeaderRect, BandHeaderMetricsCache bandHeaderMetricsCache) at Infragistics.Win.UltraWinGrid.UltraGridColumn.CalculateHeaderRect(Rectangle& rcHeader, Rectangle& prcFixedHeaders, BandHeaderMetricsCache bandHeaderMetricsCache) at Infragistics.Win.UltraWinGrid.FixedSummaryLineUIElement.GetSummaryLocation(UltraGridColumn column, Int32& x, Int32& width) at Infragistics.Win.UltraWinGrid.FixedSummaryLineUIElement.PositionChildElements() at Infragistics.Win.UIElement.VerifyChildElements(ControlUIElementBase controlElement, Boolean recursive) at Infragistics.Win.UIElement.VerifyChildElements(ControlUIElementBase controlElement, Boolean recursive) at Infragistics.Win.UIElement.VerifyChildElements(ControlUIElementBase controlElement, Boolean recursive) at Infragistics.Win.UIElement.VerifyChildElements(ControlUIElementBase controlElement, Boolean recursive) at Infragistics.Win.UltraWinGrid.RowColRegionIntersectionUIElement.VerifyChildElements(ControlUIElementBase controlElement, Boolean recursive) at Infragistics.Win.UIElement.VerifyChildElements(ControlUIElementBase controlElement, Boolean recursive) at Infragistics.Win.UltraWinGrid.DataAreaUIElement.VerifyChildElements(ControlUIElementBase controlElement, Boolean recursive) at Infragistics.Win.UIElement.VerifyChildElements(ControlUIElementBase controlElement, Boolean recursive) at Infragistics.Win.UltraWinGrid.UltraGridUIElement.VerifyChildElements(ControlUIElementBase controlElement, Boolean recursive) at Infragistics.Win.UIElement.VerifyChildElements(Boolean recursive) at Infragistics.Win.UltraWinGrid.UltraGridLayout.GetUIElement(Boolean verify, Boolean forceInitializeRect) at Infragistics.Win.UltraWinGrid.UltraGrid.OnPaint(PaintEventArgs pe) at System.Windows.Forms.Control.PaintWithErrorHandling(PaintEventArgs e, Int16 layer) at System.Windows.Forms.Control.WmPaint(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)
It falls over when I add a column at the 6th index of a group using the following code.
ugrMonthly.DisplayLayout.Bands(0).Groups("BlankGroup").Columns.Add(ugrMonthly.DisplayLayout.Bands(0).Columns("OfferingId"), 6, 0)
Note "BlankGroup" is a group I created in code. This also appears to fall over no matter what column I pick for that index. Interestingly if I change the index to 7 it works!
Unfortunately it also falls over because of another line which does not even specify an index. (It don't fall over on the line it just falls over when the form is shown).
ugrMonthly.DisplayLayout.Bands(0).Groups("Year20" & yearid).Columns.Add(ugrMonthly.DisplayLayout.Bands(0).Columns("Month" & monthpos)) ', monthpos, 0)
Thanks,
Alex