//public //constructor public CXLRTotals(CXLRGroup pOwner){ FOwner = pOwner; FOwner.DoOnChildRowsInsert(1); FTotals = new List<CXLRTotal>(); for(int i=0; i<this.FOwner.RootGroup.ColDefs.Count; i++){ CXLRColDef vCurCol = this.FOwner.RootGroup.ColDefs[i]; switch(vCurCol.TTLType){ case XLRTTLType.xttRuntotal: this.addTotalRun(vCurCol); break; case XLRTTLType.xttSubtotal: case XLRTTLType.xttFormula: this.addTotalSub(vCurCol); break; } } }