Your Privacy Matters: We use our own and third-party cookies to improve your experience on our website. By continuing to use the website we understand that you accept their use. Cookie Policy
55
Ultragrid Summary Parent band leaking into child band
posted

I'm running into an issue with summaries for my parent band showing up in the child band. I've tried turning off the summary settings for the child band with no luck

           With MyUltraGrid.DisplayLayout.Bands(0)

               .ColHeaderLines = 2

               .Override.HeaderPlacement = HeaderPlacement.FixedOnTop

End With

If MyUltraGrid.DisplayLayout.Bands.Count > 1 Then

               With MyUltraGrid.DisplayLayout.Bands(1)

 

                   .ColHeaderLines = 1

 

                   .Override.SummaryDisplayArea = SummaryDisplayAreas.None

                   .Override.AllowRowSummaries = AllowRowSummaries.False

End With

If Me.MyUltraGrid.DisplayLayout.Bands(0).ColHeaderLines > 1 Then

                With e.Layout

                   .Override.SummaryFooterCaptionVisible = Infragistics.Win.DefaultableBoolean.False

 

                   With e.Layout.Bands(0)

                       Dim ss As SummarySettings

 

                       .Summaries.Clear()

 

                       ss = .Summaries.Add("Base Value", SummaryType.Sum, .Columns("BaseValue"), SummaryPosition.UseSummaryPositionColumn)

                       ss.Appearance.BackColor = PreferencesManager.GetSingleton.SUMMARY_ROW_COLOUR

                       ss.Appearance.TextHAlign = Infragistics.Win.HAlign.Right

                       ss.DisplayFormat = "{0:#,##0.00}"

 

                       ss = .Summaries.Add("Total Cost Dollars", SummaryType.Sum, .Columns("TotalCostDollars"), SummaryPosition.UseSummaryPositionColumn)

                       ss.Appearance.BackColor = PreferencesManager.GetSingleton.SUMMARY_ROW_COLOUR

                       ss.Appearance.TextHAlign = Infragistics.Win.HAlign.Right

                       ss.DisplayFormat = "{0:#,##0.00}"

 

                       .Override.SummaryDisplayArea = SummaryDisplayAreas.Default

                       .Override.GroupBySummaryDisplayStyle = GroupBySummaryDisplayStyle.SummaryCells

 

                   End With

Parents
No Data
Reply Children
No Data