windowsforms-devexpress-dot-xtrapivotgrid-dot-pivotgridcontrol-57f0d048.md
Provides access to the fixed columns collection.
Namespace : DevExpress.XtraPivotGrid
Assembly : DevExpress.XtraPivotGrid.v25.2.dll
NuGet Package : DevExpress.Win.PivotGrid
[Browsable(false)]
[XtraSerializableProperty(XtraSerializationVisibility.Collection, true, false, true, 0, XtraSerializationFlags.CollectionContent)]
public FixedFieldValueCollection FixedColumnFieldValues { get; }
<Browsable(False)>
<XtraSerializableProperty(XtraSerializationVisibility.Collection, True, False, True, 0, XtraSerializationFlags.CollectionContent)>
Public ReadOnly Property FixedColumnFieldValues As FixedFieldValueCollection
| Type | Description |
|---|---|
| FixedFieldValueCollection |
A FixedFieldValueCollection object that is a collection of fixed field values.
|
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);
}
Imports DevExpress.XtraPivotGrid
'...
Public Sub New()
Dim info = New FixedFieldValue(fieldQuantity)
info.Conditions.Add(New FixedFieldValueCondition(fieldYear, New DateTime(2015, 2, 1)))
pivotGridControl1.FixedColumnFieldValues.Add(info)
End Sub
If you specify no conditions, the “Grand Total” column is pinned.
pivotGridControl1.FixedColumnFieldValues.Add(new FixedFieldValue(fieldQuantity));
pivotGridControl1.FixedColumnFieldValues.Add(New FixedFieldValue(fieldQuantity))
See Also