Skip to main content
A newer version of this page is available. .

Band.KeepTogether Property

Gets or sets a value which specifies whether a band can be split across pages.

Namespace: DevExpress.XtraReports.UI

Assembly: DevExpress.XtraReports.v18.2.dll

Declaration

[DefaultValue(false)]
public override bool KeepTogether { get; set; }

Property Value

Type Default Description
Boolean **false**

true to keep the contents of the entire band on a single page; otherwise, false.

Remarks

The KeepTogether property specifies whether the contents of the band can be horizontally split across pages. In other words, if the content of the band is larger than the remaining space on the page, this property specifies whether the band’s content should be split across the current page and the next page, or whether the band will be printed in its entirety on the next page. Note, that this property is in effect only when a band’s contents don’t fit onto the current page.

Note

If the band still can’t be printed in it’s entirety on the next page (there isn’t enough space to keep all the band contents together), then it will be split as though this property’s value is set to false.

The following code snippet (auto-collected from DevExpress Examples) contains a reference to the KeepTogether property.

Note

The algorithm used to collect these code examples remains a work in progress. Accordingly, the links and snippets below may produce inaccurate results. If you encounter an issue with code examples below, please use the feedback form on this page to report the issue.

See Also