Skip to main content
A newer version of this page is available. .

FixedFieldValue.Conditions Property

Specifies field values that should be pinned.

Namespace: DevExpress.XtraPivotGrid

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

NuGet Packages: DevExpress.PivotGrid.Core, DevExpress.WindowsDesktop.PivotGrid.Core

Declaration

public FixedFieldValueConditionCollection Conditions { get; }

Property Value

Type Description
FixedFieldValueConditionCollection

A FixedFieldValueConditionCollection object that specifies field values.

Remarks

The code snippet below illustrates how to pin the fieldQuantity field values that belong to the February 2015 interval.

using DevExpress.XtraPivotGrid;

//...

public Form1() {
var info = new FixedFieldValue(fieldQuantity);
info.Conditions.Add(
    new FixedFieldValueCondition(fieldYear, new DateTime(2015, 2, 1)));
pivotGridControl1.FixedColumnFieldValues.Add(info);
}

If you specify no conditions, the “Grand Total” column is pinned.

pivotGridControl1.FixedColumnFieldValues.Add(new FixedFieldValue(fieldQuantity));
See Also