FixedFieldValue.Conditions Property
Specifies field values that should be pinned.
Namespace: DevExpress.XtraPivotGrid
Assembly: DevExpress.PivotGrid.v24.1.Core.dll
NuGet Packages: DevExpress.PivotGrid.Core, DevExpress.Win.Navigation
Declaration
[XtraSerializableProperty(XtraSerializationVisibility.Collection, true, false, true, 0, XtraSerializationFlags.DefaultValue)]
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.
See Also