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
1865
SummaryDefs - Custom Summary Calculator
posted

I have created a custom summary calculator class which is RATIO of two other fields (I think, this class is correct).

I am using:

SummaryDefCustomRatioA summaryDefCustomRatioA = new SummaryDefCustomRatioA();

SummaryCalculator.Register(summaryDefCustomRatioA);

SummaryDefinition summaryDef3 = grd.FieldLayouts[0].SummaryDefinitions.Add("ratio", summaryDefCustomRatioA, "ratio");

summaryDef3.StringFormat = ": {0:P2}";

 

Since this is a custom summary, there is no SourceFieldName. However, this is not showing up - please check and help. No errors. The others where I am using SummmaryCalculator.Sum and valid SourceFieldName are working fine.

 

Thanks.