Skip to main content

DevExpress v24.2 Update — Your Feedback Matters

Our What's New in v24.2 webpage includes product-specific surveys. Your response to our survey questions will help us measure product satisfaction for features released in this major update and help us refine our plans for our next major release.

Take the survey Not interested

PivotGridControl.FixedColumnFieldValues Property

Provides access to the fixed columns collection.

Namespace: DevExpress.XtraPivotGrid

Assembly: DevExpress.XtraPivotGrid.v24.2.dll

NuGet Package: DevExpress.Win.PivotGrid

#Declaration

[Browsable(false)]
[XtraSerializableProperty(XtraSerializationVisibility.Collection, true, false, true, 0, XtraSerializationFlags.CollectionContent)]
public FixedFieldValueCollection FixedColumnFieldValues { get; }

#Property Value

Type Description
FixedFieldValueCollection

A FixedFieldValueCollection object that is a collection of fixed field values.

#Remarks

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

image

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