Changing detail.ColumnCount dynamically

Posted by: ralkassab on 14 September 2021, 12:30 pm EST

  • 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);
    }
    
    
  • Posted 20 September 2021, 5:08 am EST

    Hello,

    You need to decrease the width of the subreport and subrepport control because it does not fit when the detail column count is set to 2.

    Please explain in detail if I am missing something.

    Thanks,

    Mohit

Need extra support?

Upgrade your support plan and get personal unlimited phone support with our customer engagement team

Learn More

Forum Channels