Back to Devexpress

PivotGridControl.ColumnTotalsLocation Property

wpf-devexpress-dot-xpf-dot-pivotgrid-dot-pivotgridcontrol-26d0cdf4.md

latest3.9 KB
Original Source

PivotGridControl.ColumnTotalsLocation Property

Gets or sets the column totals‘ location. This is a dependency property.

Namespace : DevExpress.Xpf.PivotGrid

Assembly : DevExpress.Xpf.PivotGrid.v25.2.dll

NuGet Package : DevExpress.Wpf.PivotGrid

Declaration

csharp
public FieldColumnTotalsLocation ColumnTotalsLocation { get; set; }
vb
Public Property ColumnTotalsLocation As FieldColumnTotalsLocation

Property Value

TypeDescription
FieldColumnTotalsLocation

A FieldColumnTotalsLocation enumeration value that specifies the column totals’ location.

|

Available values:

NameDescription
Near

Column Totals are displayed to the left of the column field values.

| | Far |

Column Totals are displayed to the right of the column field values.

|

The following code snippets (auto-collected from DevExpress Examples) contain references to the ColumnTotalsLocation property.

Note

The algorithm used to collect these code examples remains a work in progress. Accordingly, the links and snippets below may produce inaccurate results. If you encounter an issue with code examples below, please use the feedback form on this page to report the issue.

wpf-pivot-grid-hide-specific-columns-and-row/CS/WpfApp/Data.cs#L33

csharp
pivot.ShowRowGrandTotals = false;
pivot.ColumnTotalsLocation = FieldColumnTotalsLocation.Far;
pivot.DataFieldArea = DataFieldArea.ColumnArea;

wpf-pivot-grid-split-field-value-cells/CS/Data.cs#L31

csharp
pivot.RowTotalsLocation = FieldRowTotalsLocation.Far;
pivot.ColumnTotalsLocation = FieldColumnTotalsLocation.Far;
pivot.DataFieldArea = DataFieldArea.ColumnArea;

wpf-pivot-grid-hide-specific-columns-and-row/VB/WpfApp/Data.vb#L36

vb
pivot.ShowRowGrandTotals = False
pivot.ColumnTotalsLocation = FieldColumnTotalsLocation.Far
pivot.DataFieldArea = DataFieldArea.ColumnArea

wpf-pivot-grid-split-field-value-cells/VB/Data.vb#L44

vb
pivot.RowTotalsLocation = FieldRowTotalsLocation.Far
pivot.ColumnTotalsLocation = FieldColumnTotalsLocation.Far
pivot.DataFieldArea = DataFieldArea.ColumnArea

See Also

PivotGridControl Class

PivotGridControl Members

DevExpress.Xpf.PivotGrid Namespace