wpf-devexpress-dot-xpf-dot-pivotgrid-dot-pivotcellbaseeventargs-83a1f844.md
Gets the type of the cell’s column header.
Namespace : DevExpress.Xpf.PivotGrid
Assembly : DevExpress.Xpf.PivotGrid.v25.2.dll
NuGet Package : DevExpress.Wpf.PivotGrid
public FieldValueType ColumnValueType { get; }
Public ReadOnly Property ColumnValueType As FieldValueType
| Type | Description |
|---|---|
| FieldValueType |
A FieldValueType enumeration member that specifies the type of the cell’s column header.
|
Available values:
| Name | Description |
|---|---|
| Value |
Corresponds to a field value.
| | Total |
Corresponds to an automatic total.
| | GrandTotal |
Corresponds to a grand total.
| | CustomTotal |
Corresponds to a custom total.
|
Use the PivotCellBaseEventArgs.RowValueType property to obtain the type of the cell’s row header.
The following code snippet (auto-collected from DevExpress Examples) contains a reference to the ColumnValueType 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-pivotgrid-hide-column-totals/CS/HowToBindToMDB/MainWindow.xaml.cs#L42
private void PivotGridControl1_CustomCellValue(object sender,PivotCellValueEventArgs e) {
if (e.ColumnValueType == FieldValueType.GrandTotal
&& e.DataField == fieldDiscount)
wpf-pivotgrid-hide-column-totals/VB/HowToBindToMDB/MainWindow.xaml.vb#L37
Private Sub PivotGridControl1_CustomCellValue(ByVal sender As Object, ByVal e As PivotCellValueEventArgs)
If e.ColumnValueType = FieldValueType.GrandTotal AndAlso e.DataField Is fieldDiscount Then
e.Value = Nothing
See Also