[Expand]General Information
[Expand]WinForms Controls
[Expand]ASP.NET Controls and MVC Extensions
[Expand]ASP.NET Bootstrap Controls
[Expand]ASP.NET Core Bootstrap Controls
[Collapse]WPF Controls
  Prerequisites
 [Expand]What's Installed
 [Expand].NET Core 3 Support
 [Expand]Common Concepts
 [Expand]MVVM Framework
 [Collapse]Controls and Libraries
   Reporting
  [Expand]Data Grid
  [Expand]Ribbon, Bars and Menu
  [Expand]Charts Suite
  [Collapse]Pivot Grid
   [Expand]Getting Started
   [Expand]Fundamentals
   [Collapse]Binding to Data
     Binding to Data Overview
    [Collapse]Items Source Configuration Wizard
      ADO.NET Typed DataSet
      Unbound Data Source
      Entity Framework
      Entity Framework (EF) Core
      LINQ to SQL
      WCF Data Services
      OData V4 Services
      XPO Data Source
      OLAP Cube
      IList and IEnumerable Data Sources
      ICollectionView Specifics
    [Expand]OLAP Data Source
    [Expand]Database Server Mode
     Unbound Fields
     Optimized Mode and Data Binding API
     Local Data Stores
     Asynchronous Mode
   [Expand]Data Shaping
   [Expand]Data Analysis
   [Expand]Layout
   [Expand]Printing and Exporting
   [Expand]End-User Interaction
   [Expand]Appearance
   [Expand]MVVM Enhancements
   [Expand]UI Elements
   [Expand]End-User Capabilities
   [Expand]Examples
  [Expand]Scheduler
  [Expand]Spreadsheet
  [Expand]Rich Text Editor
  [Expand]Tree List
  [Expand]Gauge Controls
  [Expand]Map Control
  [Expand]Layout Management
  [Expand]Windows Modern UI
  [Expand]Printing-Exporting
  [Expand]Data Editors
  [Expand]Navigation Controls
  [Expand]Spell Checker
  [Expand]Property Grid
  [Expand]PDF Viewer
  [Expand]TreeMap Control
  [Expand]Gantt Control
  [Expand]Diagram Control
  [Expand]Windows and Utility Controls
   Dialogs, Notifications and Panels
  [Expand]Scheduler (legacy)
 [Expand]Scaffolding Wizard
 [Expand]Localization
  Redistribution and Deployment
  Get More Help
 [Expand]API Reference
[Expand]Xamarin Controls
[Expand]Windows 10 App Controls
[Expand]Office File API
[Expand]Reporting
[Expand]Report and Dashboard Server
[Expand]Dashboard
[Expand]eXpressApp Framework
[Expand]eXpress Persistent Objects
[Expand]CodeRush
[Expand]CodeRush Classic
[Expand]Cross-Platform Core Libraries
[Expand]Tools and Utilities
 End-User Documentation
View this topic on docs.devexpress.com (Learn more)

IList and IEnumerable Data Sources

The Items 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 PivotGridControl's smart tag and select the Items Source Wizard command.

  2. In the invoked Items Source Configuration Wizard, select IList/IEnumerable...

    ... and click Next.

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

    • Simple Binding - allows you to bind the PivotGridControl to a data source directly.
    • Manipulating Data via ICollectionView - allows you to bind the PivotGridControl to a data source using the ICollectionView component, which enables collections to have the functionalities of current record management, custom sorting, filtering, and grouping. To learn more, see ICollectionView Specifics.

    Select Simple Binding and click Next.

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

    Start typing the name of the data class.

    Then, select the required class from the list of classes offered by the Items Source Configuration Wizard and click Finish.

  5. The PivotGridControl will be bound to the created data source.

    You can now use the Retrieve Fields command to retrieve the available data source fields.

    Note

    Note that the Items Source Configuration Wizard adds the created data source to window resources.

    Then, the PivotGridControl is bound to the created data source.

Is this topic helpful?​​​​​​​