Data Binding in Windows Forms Pivot Chart

28 Apr 2021 / 1 minute to read

The pivot chart control allows you to retrieve multidimensional data from either IEnumerable list or any data table to present the pivot information in an appropriate way. For example, IEnumerable data population is used in the pivot chart. The ItemSource of pivot chart is passed with the IEnumerable list.

  • c#
  • // Adds ItemSource to the Control.
    this.pivotChart1.ItemSource = ProductSales.GetSalesData();
  • vbnet
  • Adds ItemSource to the Control.
    Me.pivotChart1.ItemSource = ProductSales.GetSalesData()