wpf-devexpress-dot-xpf-dot-pivotgrid-dot-cellelementdata.md
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
public override PivotGridControl PivotGrid { get; }
Public Overrides ReadOnly Property PivotGrid As PivotGridControl
| Type | Description |
|---|---|
| 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.
CellsAreaItem cell = edit.DataContext as CellsAreaItem;
if (edit == null || cell == null || cell.PivotGrid == null)
return;
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