ComponentOne FlexReport for WinForms
SubreportHasData Property (Field)
Example 

C1.Win.FlexReport.4 Assembly > C1.Win.FlexReport Namespace > Field Class : SubreportHasData Property
Returns whether a subreport has data and suppresses rendering if it doesn't.
Syntax
'Declaration
 
Public ReadOnly Property SubreportHasData As System.Boolean
public System.bool SubreportHasData {get;}
Remarks
This property allows you to check whether a subreport has data and prevent it from rendering if it doesn't.
Example
The code below uses script to hide sections with empty subreports: The code below uses script to hide a field containing an empty subreport and show another field instead:
rep.Sections.Detail.OnFormat = "Detail.Visible = fSubreport.SubreportHasData"
rep.Sections.Detail.OnFormat = 
    "hasData = fSubreport.SubreportHasData\r\n" +
    "fSubreport.Visible = hasData" +
    "fNoData.Visible = Not hasData\r\n" +
See Also

Reference

Field Class
Field Members