Back to Devexpress

PivotGridControl.FixedColumnFieldValues Property

windowsforms-devexpress-dot-xtrapivotgrid-dot-pivotgridcontrol-57f0d048.md

latest2.8 KB
Original Source

PivotGridControl.FixedColumnFieldValues Property

Provides access to the fixed columns collection.

Namespace : DevExpress.XtraPivotGrid

Assembly : DevExpress.XtraPivotGrid.v25.2.dll

NuGet Package : DevExpress.Win.PivotGrid

Declaration

csharp
[Browsable(false)]
[XtraSerializableProperty(XtraSerializationVisibility.Collection, true, false, true, 0, XtraSerializationFlags.CollectionContent)]
public FixedFieldValueCollection FixedColumnFieldValues { get; }
vb
<Browsable(False)>
<XtraSerializableProperty(XtraSerializationVisibility.Collection, True, False, True, 0, XtraSerializationFlags.CollectionContent)>
Public ReadOnly Property FixedColumnFieldValues As FixedFieldValueCollection

Property Value

TypeDescription
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.

csharp
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);
}
vb
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.

csharp
pivotGridControl1.FixedColumnFieldValues.Add(new FixedFieldValue(fieldQuantity));
vb
pivotGridControl1.FixedColumnFieldValues.Add(New FixedFieldValue(fieldQuantity))

See Also

PivotGridControl Class

PivotGridControl Members

DevExpress.XtraPivotGrid Namespace