[Expand]General Information
[Collapse]WinForms Controls
  .NET Core Support
 [Expand]What's Installed
 [Expand]Build an Application
 [Collapse]Controls and Libraries
  [Expand]Forms and User Controls
  [Expand]Messages, Notifications, and Dialogs
  [Expand]Editors and Simple Controls
  [Expand]Ribbon, Bars and Menu
  [Expand]Application UI Manager
  [Expand]Docking Library
  [Expand]Data Grid
  [Expand]Vertical Grid
  [Expand]Property Grid
  [Collapse]Pivot Grid
   [Expand]Getting Started
   [Collapse]Binding to Data
     Binding to Data Overview
    [Collapse]Data Source Configuration Wizard
      ADO.NET Data
      SQL Data
      Excel Data Source
      Unbound Data Source
      Entity Framework Data
      Entity Framework (EF) Core
      LINQ to SQL
      WCF Data Services
      OData V4
      XPO Data Source
      IList and IEnumerable Data Sources
      XML Data
      OLAP Cube
      BindingSource Component 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]Focus and Navigation
   [Expand]Printing and Exporting
   [Expand]Design-Time Features
   [Expand]UI Elements
   [Expand]End-User Capabilities
   [Expand]Member Tables
  [Expand]Tree List
  [Expand]Gantt Control
  [Expand]Chart Control
  [Expand]Map Control
  [Expand]Rich Text Editor
  [Expand]Spell Checker
  [Expand]Form Layout Managers
  [Expand]Navigation Controls
  [Expand]PDF Viewer
  [Expand]TreeMap Control
  [Expand]Sunburst Control
 [Expand]Common Features
  Get More Help
 [Expand]API Reference
[Expand]ASP.NET Controls and MVC Extensions
[Expand]ASP.NET Bootstrap Controls
[Expand]ASP.NET Core Bootstrap Controls
[Expand]WPF Controls
[Expand]Xamarin Controls
[Expand]Windows 10 App Controls
[Expand]Office File API
[Expand]Report and Dashboard Server
[Expand]eXpressApp Framework
[Expand]eXpress Persistent Objects
[Expand]CodeRush Classic
[Expand]Cross-Platform Core Libraries
[Expand]Tools and Utilities
 End-User Documentation
View this topic on docs.devexpress.com (Learn more)


The Data Source Configuration Wizard allows you to bind the PivotGridControl to an ADO.NET DataSet at design time. You can also bind the PivotGridControl to a DataSet in code. This topic shows how to do this.

Expanded Binding to a DataSet at Design Time

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

  2. In the invoked Data Source Configuration Wizard, select ADO.NET Typed DataSet...

    ... and click the New Data Source button placed within the Data Sources area.

  3. The following message will appear.

    Click OK.

  4. In the invoked Data Source Configuration Wizard, you can establish a connection to the required database.

    To learn how to use the Data Source Configuration Wizard, see the following MSDN topic: Data Source Configuration Wizard.


    After you created the data source, rebuild the solution.

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

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

    Click Next.

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

    Select Direct Binding to Data Source and click Next.

  8. On the final page, you can specify the table from the created DataSet.

    Select the required table and click Finish.

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

    You can now use the Retrieve Fiels command to retrieve the available data source fields. As an alternative, you can add specific fields manually using the PivotGrid Designer. To do this, use the Run Designer... command.

Expanded Binding to a DataSet in Code

The following code illustrates how to bind the PivotGridControl to the SalesPerson view of the Northwind database at runtime.

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