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
3550
summary for 2 bands
posted

I have 2 bands -[0] and [1]

on band[1] I have column HAPINT_SPREAD_AMOUNT

I want to do a summary on band 1 for this column and then for the same column

give the total summary ( for band 0)

The followin code just shows me the summary for band[1]

basicInfraGrid1.DisplayLayout.Bands[1].Summaries.Add(Infragistics.Win.UltraWinGrid.SummaryType.Sum,
                basicInfraGrid1.DisplayLayout.Bands[1].Columns["HAPINT_SPREAD_AMOUNT"]);
            basicInfraGrid1.DisplayLayout.Override.SummaryDisplayArea = SummaryDisplayAreas.GroupByRowsFooter |
              SummaryDisplayAreas.Bottom; 
basicInfraGrid1.DisplayLayout.Bands[0].Summaries.Add( 
Infragistics.Win.UltraWinGrid.SummaryType.Sum, 
basicInfraGrid1.DisplayLayout.Bands[1].Columns["HAPINT_SPREAD_AMOUNT"]);

Parents
  • 53790
    posted

    Hello Drpoalim,

    Maybe one possible approach is to use property Summaries for the both Bands. Could you please take a look at the attached sample for more details. Please let me know if you think that I misunderstood your scenario or if you have any questions.

    Regards

    UltraGridSummaryOnBands.zip
Reply Children