Thanks for the update.
We have checked the same shared sample in VS2019. But we are unable to reproduce the issue at our end. We have defined the values in ProductSales class. Here, we have randomly selected the 10 dates for the “Year” pivot rows. Based on this, the pivot grid populates the data properly.
Could you please check the following details?
- Add the breakpoint in GetSalesData method(refer the attached video) to check the Year value in the list.(each data have different date values)
- Do you have changed any values In the sample?
- Try the sample in some other machine to check the reported scenario?
- Try the following code snippet to check the row count values in pivot engine.
Note: Based on the row count values of engine, the pivot grid row displayed.
pivotGrid1.Loaded += PivotGrid1_Loaded;
private void PivotGrid1_Loaded(object sender, RoutedEventArgs e)
pivotGrid1.InternalGrid.Loaded += InternalGrid_Loaded;
private void InternalGrid_Loaded(object sender, RoutedEventArgs e)
//Here we getting the row count value as 13.
int row = this.pivotGrid1.PivotEngine.RowCount;
//Here we getting the column count value as 8.
int column = this.pivotGrid1.PivotEngine.ColumnCount;
Please refer the attached videos from the following location:
Please let us know if you need any further assistance. Based on your updates, we will proceed further.