Back to Devexpress

XPO Data Source

windowsforms-115518-controls-and-libraries-pivot-grid-binding-to-data-data-source-configuration-wizard-xpo-data-source.md

latest1.2 KB
Original Source

XPO Data Source

  • Sep 10, 2020
  • 2 minutes to read

The Data Source Configuration Wizard allows you to bind the PivotGridControl to an XPO data source. This topic goes over the steps needed to do this.

  1. Click the Data Source Wizard button placed on the PivotGridControl or use the corresponding command in the control’s smart tag.

  2. In the invoked Data Source Configuration Wizard, select DevExpress ORM Tool (XPO)

  3. The following message will appear.

  4. On the next page, you can generate persistent objects using the ORM Data Model Wizard or you can create persistent objects manually. Select the required option, specify the object name and click Add.

  5. After creating a data model, click the Data Source Wizard button again.

  6. In the invoked Data Source Configuration Wizard, select the created data model.

  7. On the next page, select the required binding method.

  8. On the final page, you can specify the table.

  9. The PivotGridControl will be bound to the created XPCollection.