Syncfusion.PivotAnalysis.Windows
Example 


PivotColumns Property (PivotGridControl)

Syntax
'Declaration
 
<BrowsableAttribute(False)>
<CategoryAttribute("Pivot")>
<XmlIgnoreAttribute()>
Public ReadOnly Property PivotColumns As ObservableCollection(Of PivotItem)
'Usage
 
Dim instance As PivotGridControl
Dim value As ObservableCollection(Of PivotItem)
 
value = instance.PivotColumns
[Browsable(false)]
[Category("Pivot")]
[XmlIgnore()]
public ObservableCollection<PivotItem> PivotColumns {get;}
Example
This example shows how to use the PivotColumns property. Here "Country" is the field's mapping name and "Total" is the header.
// Adding PivotColumns to the pivot grid.
this.pivotGridControl1.PivotColumns.Add(new PivotItem { FieldMappingName = "Country", TotalHeader = "Total" });
' Adding PivotColumns to the pivot grid. Here "Country" is the field's mapping name and "Total" is the header.
Me.pivotGridControl1.PivotColumns.Add(New PivotItem With {.FieldMappingName = "Country", .TotalHeader = "Total"})
AssemblyVersion

Syncfusion.PivotAnalysis.Windows: 17.4460.0.39

See Also