Posted 9 September 2017, 8:29 am ESTI am trying to create a custom C1OlapPage grid programmatically. I followed the steps from your documentation and it worked properly, but now I need to add subtotals. I found how to add the total field (olap.ValueFields.Add("Sales");) and how to change the format and functions of the existing subtotals (field = olap.Fields["Sales"]; field.Format = "c"; field.Subtotal = Subtotal.Average;), but I didn't find anywhere how to activate/add the subtotals for some of my fields, as is possible to achieve through UI from Grid -> Total Rows -> Subtotals.
Is it possible to achieve this programmatically? Any help will be appreciated.