PdfRpt.Export.ExportToCsv.RowAdded C# (CSharp) Method

RowAdded() public method

Fires after adding a row to the main table.
public RowAdded ( IList cellsData, bool isNewGroupStarted ) : void
cellsData IList cells data
isNewGroupStarted bool Indicates starting a new group
return void
        public void RowAdded(IList<CellData> cellsData, bool isNewGroupStarted)
        {
            foreach (var item in cellsData)
            {
                if (isByteArray(item))
                {
                    _sb.Append(makeValueCsvFriendly("[BLOB]")).Append(",");
                }
                else if (!string.IsNullOrEmpty(item.FormattedValue))
                {
                    _sb.Append(makeValueCsvFriendly(item.FormattedValue.ToSafeString())).Append(",");
                }
                else
                {
                    _sb.Append(makeValueCsvFriendly(item.PropertyValue)).Append(",");
                }
            }
            _sb.AppendLine();
        }