Skip to content

Instantly share code, notes, and snippets.

@bjoerntx
Created November 28, 2018 22:41
Show Gist options
  • Save bjoerntx/b5b2f344444813f29890e87367629bef to your computer and use it in GitHub Desktop.
Save bjoerntx/b5b2f344444813f29890e87367629bef to your computer and use it in GitHub Desktop.
MergeBlockInfo mergeBlockInfo = new MergeBlockInfo("Products");
mergeBlockInfo.BlockMergingCondition =
new List<TXTextControl.DocumentServer.DataShaping.FilterInstruction>()
{
new TXTextControl.DocumentServer.DataShaping.FilterInstruction(
"RenderProducts",
TXTextControl.DocumentServer.DataShaping.RelationalOperator.Equals,
true
)
};
mergeBlockInfo.ColumnNames =
ribbonReportingTab1.DataSourceManager.PossibleMergeFieldColumns.Select(
column => column.ColumnName).ToList();
MergeBlockSettings settings = new MergeBlockSettings(BlockTemplateType.PlainParagraph);
ribbonReportingTab1.DataSourceManager.InsertMergeBlock(textControl1, mergeBlockInfo, settings);
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment