Data Binding in Windows Forms Pivot Chart
28 Apr 20211 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.
// Adds ItemSource to the Control.
this.pivotChart1.ItemSource = ProductSales.GetSalesData();
‘Adds ItemSource to the Control.
Me.pivotChart1.ItemSource = ProductSales.GetSalesData()