The following image illustrates the report created in this tutorial.
Do the following to display the current row numbers in a report
Start with a report that is bound to the sample Northwind database's CategoryProducts view (the nwind.mdb file included in the XtraReports installation). See Provide Data to Reports to learn more about binding a report to a data source.
Drop the ProductName data field from the Field List onto the report's Detailband.
Click the field for which the current row index should be displayed to select it. Hold down CTRL and drag the field to create an exact XRLabel control's copy used to display the index.
Click the created label's smart tag, and in its actions list, set the Summary Running property (XRSummary.Running) to Report (Group or Page if required).