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

DetailBand.KeepTogetherWithDetailReports Property

Specifies whether or not the current DetailBand band should always be printed on the same page, together with its child DetailReportBand.

Namespace: DevExpress.XtraReports.UI

Assembly: DevExpress.XtraReports.v19.2.dll

NuGet Package: DevExpress.Reporting.Core

Declaration

[DefaultValue(false)]
[SRCategory(ReportStringId.CatBehavior)]
public bool KeepTogetherWithDetailReports { get; set; }

Property Value

Type Default Description
Boolean false

true to always print the Detail band and its child Detail Report band together; otherwise, false.

Remarks

The KeepTogetherWithDetailReports property is intended to control mutual printing of a Detail band and the Detail Report band below it. If you allow these bands to be split across pages when there is not enough room on a page to print both bands, leave the KeepTogetherWithDetailReports property value false. If you want the Detail band to be moved to the next page, to be printed together with its child Detail Report band, set the KeepTogetherWithDetailReports property to true.

The following code snippet (auto-collected from DevExpress Examples) contains a reference to the KeepTogetherWithDetailReports 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