Back to Devexpress

FieldValueCell.Field Property

wpf-devexpress-dot-xpf-dot-pivotgrid-dot-fieldvaluecell-6c94ccae.md

latest2.5 KB
Original Source

FieldValueCell.Field Property

Gets the field whose value the cell represents.

Namespace : DevExpress.Xpf.PivotGrid

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

NuGet Package : DevExpress.Wpf.PivotGrid

Declaration

csharp
public PivotGridField Field { get; }
vb
Public ReadOnly Property Field As PivotGridField

Property Value

TypeDescription
PivotGridField

A PivotGridField object that represents the field whose value the cell represents.

|

The following code snippet (auto-collected from DevExpress Examples) contains a reference to the Field 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-split-field-value-cells/CS/Window1.xaml.cs#L30

csharp
return matchCell.ValueType == FieldValueType.GrandTotal &&
        matchCell.Field == null;
});

wpf-pivot-grid-split-field-value-cells/VB/Window1.xaml.vb#L30

vb
' Only cells that match this predicate are split.
Dim condition As Predicate(Of FieldValueCell) = New Predicate(Of FieldValueCell)(Function(ByVal matchCell) matchCell.ValueType = FieldValueType.GrandTotal AndAlso matchCell.Field Is Nothing)
' Creates a list of cell definitions that represent newly created cells.

See Also

FieldValueCell Class

FieldValueCell Members

DevExpress.Xpf.PivotGrid Namespace