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
4165
Unable to Display a column Summary Formula
posted

Hi,

We have a grid with a column named GP. We would like to make this the Average of two sums of two other columns, cost and sell.

I thought it should be this (totalCost/totalSell or the key's for two other summaries on the same grid)

.Formula = (AVG[totalSell()] - AVG([totalCost()]) / AVG([totalSell()]

However it does not work. Even if try a simple formula like

.Formula = SUM([gp]) 

I get just an empty grey square.


I am sure we are missing something simple

EXAMPLE

e.Layout.Bands[0].Summaries.Add("gpavg", SummaryType.Formula, e.Layout.Bands[0].Columns["gp"]);
e.Layout.Bands[0].Summaries["gpavg"].Formula = "SUM([gp])";

Thanks,

M

Parents
  • 6120
    Offline posted

    Hello,

    To implement formulas on your Grid, please drag the UltraCalcManager component from the Toolbox onto your form.  This will extend the capabilities of all the controls on the form. WinGrid needs this component on the form in order to support the formulas.

    Let me know if you have any questions.
     
    Sincerely,
    Sahaja Kokkalagadda
    Associate Software Developer

Reply Children