Back to Devexpress

PivotGridFieldOptions.HideEmptyVariationItems Property

corelibraries-devexpress-dot-xtrapivotgrid-dot-pivotgridfieldoptions-54b9c2f1.md

latest3.9 KB
Original Source

PivotGridFieldOptions.HideEmptyVariationItems Property

Gets or sets whether the first (empty) column/row that displays variation data for the current data field must be hidden.

Namespace : DevExpress.XtraPivotGrid

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

NuGet Packages : DevExpress.PivotGrid.Core, DevExpress.Win.Navigation

Declaration

csharp
[DefaultValue(false)]
public bool HideEmptyVariationItems { get; set; }
vb
<DefaultValue(False)>
Public Property HideEmptyVariationItems As Boolean

Property Value

TypeDefaultDescription
Booleanfalse

true if the first (empty) column/row that displays variation data for the current data field must be hidden; otherwise, false.

|

Property Paths

You can access this nested property as listed below:

Object TypePath to HideEmptyVariationItems
PivotGridFieldBase

.Options .HideEmptyVariationItems

|

Remarks

If the current field is a data field and the PivotGridFieldBase.SummaryDisplayType property is set to PivotSummaryDisplayType.AbsoluteVariation or PivotSummaryDisplayType.PercentVariation, the corresponding columns/rows display variation data. In this case, the first column/row is always empty. You can hide it via the HideEmptyVariationItems property.

The following code snippet (auto-collected from DevExpress Examples) contains a reference to the HideEmptyVariationItems 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.

winforms-pivot-grid-walkthrough-tutorial/CS/WinPivot_GettingStarted/Form1.cs#L21

csharp
sqlDataSource1.Fill();
pivotGridField5.Options.HideEmptyVariationItems = true;
pivotGridControl1.BestFit();

winforms-pivot-grid-walkthrough-tutorial/VB/WinPivot_GettingStarted/Form1.vb#L15

vb
sqlDataSource1.Fill()
pivotGridField5.Options.HideEmptyVariationItems = True
pivotGridControl1.BestFit()

See Also

SummaryDisplayType

PivotGridFieldOptions Class

PivotGridFieldOptions Members

DevExpress.XtraPivotGrid Namespace