Skip to main content

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.v24.1.dll

NuGet Package: DevExpress.Reporting.Core


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:

Object Type Path to DetailCountOnEmptyDataSource
.ReportPrintOptions .DetailCountOnEmptyDataSource


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


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.


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