Back to Devexpress

Count the Number of Records in a Report or Group

xtrareports-119445-feature-guide-to-devexpress-reports-shape-report-data-count-elements-and-values-count-the-number-of-records-in-a-report-or-group.md

latest908 B
Original Source

Count the Number of Records in a Report or Group

  • Feb 18, 2026

This document describes how to display the number or records in a report or group.

  1. Right-click the report’s design surface and add a report header or footer to display the record count for the entire report.

  2. Switch to the Field List and drop the data field onto the header band to create a data-bound label:

  3. Click the label’s smart tag. In the invoked Label Tasks window, click the Summary field’s ellipsis button.

  4. In the Summary Editor window:

  5. Back in the Label Tasks window, you can use the FormatString property to format the resulting value:

  6. Drop the ProductName field onto the Detail band:

  7. Switch to the Preview window to see the resulting report: