ComponentOne FlexReport for WinForms
Managing Splitting of FlexReport Objects
Working with FlexReport > Managing Splitting of FlexReport Objects

Since creating reports is all about representing data, it is important to control the fit of the objects depending upon their height and width.

In FlexReports, any Section or Sub-section can be forced to split or not to split (keep together) between the pages by setting SplitBehavior property to SplitIfNeeded or KeepTogether. Similarly, the splitting of Fields and Borders is governed by SplitHorzBehavior and SplitVertBehavior properties.

The following code sets the SplitBehavior for a Section and a Sub-section:

'Allow section to split if needed
  C1FlexReport1.Sections.Header.SplitBehavior = SplitBehavior.SplitIfNeeded

'Allow sub-section to split if needed
  C1FlexReport1.Sections.Header.SubSections(0).SplitBehavior = SplitBehavior.SplitIfNeeded
// Allow section to split if needed
   c1FlexReport1.Sections.Header.SplitBehavior = SplitBehavior.SplitIfNeeded;

// Allow sub-section to split if needed
   c1FlexReport1.Sections.Header.SubSections[0].SplitBehavior = SplitBehavior.SplitIfNeeded;