PdfRpt.Aggregates.Numbers.Average.CellAdded C# (CSharp) Method

CellAdded() public method

Fires after adding a cell to the main table.
public CellAdded ( object cellDataValue, bool isNewGroupStarted ) : void
cellDataValue object Current cell's data
isNewGroupStarted bool Indicated starting a new group
return void
        public void CellAdded(object cellDataValue, bool isNewGroupStarted)
        {
            checkNewGroupStarted(isNewGroupStarted);

            _overallRowNumber++;
            _groupRowNumber++;

            var cellValue = Convert.ToDouble(cellDataValue, CultureInfo.InvariantCulture);
            groupAvg(cellValue);
            overallAvg(cellValue);
        }