Back to Devexpress

IList and IEnumerable Data Sources

windowsforms-115505-controls-and-libraries-pivot-grid-binding-to-data-data-source-configuration-wizard-ilist-and-ienumerable-data-sources.md

latest1.2 KB
Original Source

IList and IEnumerable Data Sources

  • Mar 14, 2021
  • 2 minutes to read

The Data Source Configuration Wizard allows you to bind the PivotGridControl to any object that implements the IList or IEnumerable interfaces (to learn more about such objects, see Traditional Data Binding Methods). This topic guides you through the steps needed to do this.

Note

In this topic, the data class from the following example will be used: How to: Bind a Control to Data Created at Runtime.

  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 IList/IEnumerable

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

  4. On the final page, you need to specify the name of the required data class.

  5. The following code will be generated by the Data Source Configuration Wizard.