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

ReportPrintOptions.DetailCountOnEmptyDataSource Property

Specifies how many times the Detail band should be printed when no data source is defined for the report.

Namespace: DevExpress.XtraReports.UI

Assembly: DevExpress.XtraReports.v18.2.dll

Declaration

[DefaultValue(1)]
public int DetailCountOnEmptyDataSource { get; set; }

Property Value

Type Default Description
Int32 1

An integer value.

Property Paths

You can access this nested property as listed below:

Library Object Type Path to DetailCountOnEmptyDataSource
WinForms Controls XtraSchedulerReport
.ReportPrintOptions.DetailCountOnEmptyDataSource
Reporting DetailReportBand
.ReportPrintOptions.DetailCountOnEmptyDataSource
XtraReport
.ReportPrintOptions.DetailCountOnEmptyDataSource
XtraReportBase
.ReportPrintOptions.DetailCountOnEmptyDataSource

Remarks

Use the DetailCountOnEmptyDataSource property, to specify how many times the Detail band is printed, when no data source is defined for the report.

detail-count-on-empty-data-source

To specify the number of times the Detail band is printed when a data source is defined for the report (and it is not empty), use the ReportPrintOptions.DetailCount property.

To limit the number of records shown when a report is previewed at design time, use the ReportPrintOptions.DetailCountAtDesignTime property.

To choose whether or not a report should be printed when its data source has no data, use the ReportPrintOptions.PrintOnEmptyDataSource property.

To learn more, see Data Filtering Overview.

The following code snippets (auto-collected from DevExpress Examples) contain references to the DetailCountOnEmptyDataSource 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