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);
}