PdfRpt.Core.PdfTable.RowsManager.updateAggregates C# (CSharp) Method

updateAggregates() private method

private updateAggregates ( ColumnAttributes col, PdfRpt.Core.Contracts.CellAttributes cell ) : void
col PdfRpt.Core.Contracts.ColumnAttributes
cell PdfRpt.Core.Contracts.CellAttributes
return void
        private void updateAggregates(ColumnAttributes col, CellAttributes cell)
        {
            if (cell == null || col.AggregateFunction == null) return;

            col.AggregateFunction.CellAdded(cell.RowData.Value, CurrentRowInfoData.IsNewGroupStarted);

            var columnRowSummary = new SummaryCellData
            {
                CellData = new CellData
                {
                    PropertyName = col.PropertyName,
                    PropertyValue = cell.RowData.Value,
                    PropertyType = cell.RowData.PropertyType
                },
                GroupAggregateValue = col.AggregateFunction.GroupValue,
                GroupRowNumber = CurrentRowInfoData.LastGroupRowNumber,
                OverallAggregateValue = col.AggregateFunction.OverallValue,
                OverallRowNumber = CurrentRowInfoData.LastOverallDataRowNumber,
                GroupNumber = CurrentRowInfoData.LastGroupNumber
            };
            SharedData.ColumnCellsSummaryData.Add(columnRowSummary);
        }