private void addTableRow(IList <CellData> rowData, BaseColor backgroundColor, BaseColor foreColor)
{
var finalRowDataList = new List <CellData>();
for (var columnNumber = 0; columnNumber < SharedData.ColumnsCount; columnNumber++)
{
var col = SharedData.PdfColumnsAttributes[columnNumber];
CellAttributes cell;
if (col.IsRowNumber)
{
cell = TableCellHelper.AddRowNumberCell(backgroundColor, foreColor, columnNumber);
}
else
{
GroupsManager.ModifyRowData(rowData);
cell = TableCellHelper.AddRowCell(rowData, backgroundColor, foreColor, columnNumber);
updateAggregates(col, cell);
}
finalRowDataList.Add(new CellData
{
PropertyName = col.PropertyName,
PropertyValue = cell.RowData.Value,
FormattedValue = cell.RowData.FormattedValue,
PropertyType = cell.RowData.PropertyType
});
}
_exporterManager.ApplyExporter(finalRowDataList, CurrentRowInfoData);
CurrentRowInfoData.IsNewGroupStarted = false;
CurrentRowInfoData.PreviousTableRowData = rowData;
}