/// <summary> /// Fires after RowAddedEvent when the RowType is DataTableRow. /// </summary> public void RowAddedInjectCustomRows(Action <InjectCustomRowsBuilder> customRowsBuilder) { Func <EventsArguments, IList <IList <CellData> > > func = args => { var builder = new InjectCustomRowsBuilder { EventsArgs = args }; customRowsBuilder(builder); return(builder.Rows); }; _pdfReport.DataBuilder.RowAddedInjectCustomRowsEvent(func); }
/// <summary> /// Fires before RowStartedEvent when the RowType is DataTableRow. /// </summary> public void RowStartedInjectCustomRows(Action<InjectCustomRowsBuilder> customRowsBuilder) { Func<EventsArguments, IList<IList<CellData>>> func = args => { var builder = new InjectCustomRowsBuilder { EventsArgs = args }; customRowsBuilder(builder); return builder.Rows; }; _pdfReport.DataBuilder.RowStartedInjectCustomRowsEvent(func); }