Skip to main content
All docs
V25.1
  • FixedFieldValue.Conditions Property

    Specifies field values that should be pinned.

    Namespace: DevExpress.XtraPivotGrid

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

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

    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