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
1205
WinGrid Summary
posted

My objective is to perform this calculation: Field2/Field1 = Field3.

this.ugSalesStats.DisplayLayout.Bands[0].Summaries.Add("Field1", SummaryType.Sum, this.ugSalesStats.DisplayLayout.Bands[0].Columns["Field1"]); this.ugSalesStats.DisplayLayout.Bands[0].Summaries.Add("Field2", SummaryType.Sum, this.ugSalesStats.DisplayLayout.Bands[0].Columns["Field2"]);     this.ugSalesStats.DisplayLayout.Bands[0].Summaries.Add("Field3", SummaryType.Sum, this.ugSalesStats.DisplayLayout.Bands[0].Columns["Field3"]);

I'm aware the above syntax won't get it done. My intent above is to illustrate what I'm trying to accomplish.

I've read several KB articles related to my objective but I can't quite figure out the appropriate syntax.

To sum it up, I want to divide two summery row fields and place the result in a third summay row field.

Field1    Field2    Field3

 1234       711        57

Thanks for taking a look.

Parents Reply Children
No Data