Hi,
I'm trying to change the back colors of the columns to be alternating, but I cannot figure out how.
Me.PivotGridControl1.ItemSource = ProductSales.GetSalesData()
' Adding Pivot Rows to Grid
Me.PivotGridControl1.PivotRows.Add(New PivotItem With {.FieldMappingName = "Product", .TotalHeader = "Total"})
Me.PivotGridControl1.PivotRows.Add(New PivotItem With {.FieldMappingName = "Date", .TotalHeader = "Total"})
' Adding Pivot Columns to Grid
Me.PivotGridControl1.PivotColumns.Add(New PivotItem With {.FieldMappingName = "Country", .TotalHeader = "Total"})
Me.PivotGridControl1.PivotColumns.Add(New PivotItem With {.FieldMappingName = "State", .TotalHeader = "Total"})
' Adding Pivot Calculations to Grid
Me.PivotGridControl1.PivotCalculations.Add(New PivotComputationInfo With {.FieldName = "Amount", .Format = "C", .SummaryType = SummaryType.DoubleTotalSum})
Me.PivotGridControl1.PivotCalculations.Add(New PivotComputationInfo With {.FieldName = "Quantity", .Format = "#,##0"})
So, I would like, for example, the "Amount" column to be light Gray and the "Quantity" column to be dark gray.
Anyone can enlighten me?
Thanks