Hi all!
After upgrading from 15.1 to 15.2 we have serious Problems with one of our grid.
The grid have 3 Groups and in 1 Group a summary.
Me.Grid_Calender.DisplayLayout.Bands(0).Groups.Add("TimeDiffe")
Me.Grid_Calender.DisplayLayout.Bands(0).Groups("TimeDiffe").Columns.Add(.Columns("TimeDiffMinutes"))
Me.Grid_Calender.DisplayLayout.Bands(0).Groups("TimeDiffe").Columns.Add(.Columns("TimeDiffHours"))
Me.Grid_Calender.DisplayLayout.Bands(0).Groups("TimeDiffe").Header.Caption = "Difference to Time model"
Me.Grid_Calender.DisplayLayout.Bands(0).Groups("TimeDiffe").Header.Appearance.BackColor = Color.FromArgb(67, 168, 152)
.SummaryFooterCaption = "Time difference in minutes"
.Override.SummaryDisplayArea = UltraWinGrid.SummaryDisplayAreas.TopFixed
.Override.SummaryFooterAppearance.FontData.Bold = DefaultableBoolean.True
.Summaries.Add("TimeDiffTotal", UltraWinGrid.SummaryType.Sum, .Columns("TimeDiffMinutes"), UltraWinGrid.SummaryPosition.UseSummaryPositionColumn)
.Summaries("TimeDiffTotal").DisplayFormat = "{0:#,##0}" & " m"
.Summaries("TimeDiffTotal").Appearance.TextHAlign = HAlign.Right
.Summaries.Add("TimeDiffHours", UltraWinGrid.SummaryType.Sum, .Columns("TimeDiffHours"), UltraWinGrid.SummaryPosition.UseSummaryPositionColumn)
.Summaries("TimeDiffHours").DisplayFormat = "{0:#,##0.00}" & " h"
.Summaries("TimeDiffHours").Appearance.TextHAlign = HAlign.Right
This code worked well in 15.1. Now we got follwoing error:
system.NullReferenceException: Object reference not set to an instance of an object. 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)
The Group only work well and also only the summary work well.
But not togeter....any ideas?
rgds
P.S.:
If I canges the Position if the Summaries from UseSummaryPositionColumn to Right it works, but I have to display 2 summaries and changing it to right Shows only one
Hello,
I started working on a sample but haven't been able to reproduce the exception. Would you mind reproducing the behavior; I've attached the sample here.
Let me know if you have any questions regarding this matter.