Back to Devexpress

Bind a Report to a CSV File

xtrareports-114905-feature-guide-to-devexpress-reports-bind-reports-to-data-excel-file-bind-a-report-to-a-csv-file.md

latest1.4 KB
Original Source

Bind a Report to a CSV File

  • Feb 18, 2026
  • 2 minutes to read

This tutorial describes how to bind a report to data obtained from a CSV file.

Do the following to accomplish this task:

  1. Click the report’s smart tag. In the invoked actions list, expand the drop-down menu for the XtraReportBase.DataSource property and click the Add Report Data Source… link.

  2. On the first page of the invoked Data Source Wizard, select Excel File and click Next.

  3. On the next wizard page, click the ellipsis button and locate the required CSV file or enter the full path to the file.

  4. The next wizard page allows you to specify the import settings.

  5. The next page allows you to select required columns and specify their settings.

The created data source becomes displayed in the Report Explorer‘s Data Sources node. The Field List reflects the data source’s hierarchy.

See Also

Excel File