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
40
Formula in Column using Summaries
posted

Hello to all readers,

i have an Ultragrid control and i am building the total sum for a column using summarysettings.

that works fine.

UltraCalcManager calc = new UltraCalcManager();
            e.Layout.Grid.CalcManager = calc;
            e.Layout.GroupByBox.Hidden                  = true;
            SummarySettings summary                    
= e.Layout.Bands[0].Summaries.Add("G_MENGE"
                , SummaryType.Sum
                , e.Layout.Bands[0].Columns[3]
                , SummaryPosition.UseSummaryPositionColumn);
            summary.DisplayFormat = "Total = {0}";
            ultragrid1.DisplayLayout.Bands[0].SummaryFooterCaption =
"Statistik"
;


Now i need a calculated column which computes with the
total sum of [col3]. But i don't now how!!!

Please help me.
Parents
No Data
Reply
  • 469350
    Offline posted

    Hi,

    I'm afraid I do not understand your question. The code you have here will display the sum of column 3. How is that different htan the "total sum of [col3]"?

    By the way, the SummaryType.Sum is a summary type built-in to the grid. You do not need to use a CalcManager for that.

Children