Posted 14 September 2021, 12:30 pm EST
Hi,
I have a report where I need to dynamically change the columnCount on detail section based on content of subreport. I need to make first subreport grows to cover the full width of the detail section and subsequent subreport takes their place as normal (2 subreports per row). The issue now is that when column count is changed to 2 the content gets cropped from first subreport with wide content.
Any help?
if(isFirstElement && makeSpaceForWideSubReport)
{
detail.NewColumn = NewColumn.After;
subReportDetail.CanGrow = true;
detail.ColumnCount = 1;
return new subReportSuperWideContent(Fields["x"].Value as Data);
}
else
{
detail.ColumnCount = 2;
detail.NewColumn = NewColumn.None;
return subReport1(Fields["x"].Value as Data);
}