Back to Devexpress

CellElementData.PivotGrid Property

wpf-devexpress-dot-xpf-dot-pivotgrid-dot-cellelementdata.md

latest2.6 KB
Original Source

CellElementData.PivotGrid Property

Gets the Pivot Grid control to which the cell belongs.

Namespace : DevExpress.Xpf.PivotGrid

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

NuGet Package : DevExpress.Wpf.PivotGrid

Declaration

csharp
public override PivotGridControl PivotGrid { get; }
vb
Public Overrides ReadOnly Property PivotGrid As PivotGridControl

Property Value

TypeDescription
PivotGridControl

A PivotGridControl instance to which the cell belongs.

|

The following code snippet (auto-collected from DevExpress Examples) contains a reference to the PivotGrid 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-define-custom-cell-template-to-performing-data-editing/CS/HowToEditCell/PivotGridEditHelper.cs#L158

csharp
CellsAreaItem cell = edit.DataContext as CellsAreaItem;
if (edit == null || cell == null || cell.PivotGrid == null)
    return;

wpf-pivot-grid-define-custom-cell-template-to-performing-data-editing/VB/HowToEditCell/PivotGridEditHelper.vb#L166

vb
Dim cell As CellsAreaItem = TryCast(edit.DataContext, CellsAreaItem)
If edit Is Nothing OrElse cell Is Nothing OrElse cell.PivotGrid Is Nothing Then
    Return

See Also

CellElementData Class

CellElementData Members

DevExpress.Xpf.PivotGrid Namespace