corelibraries-devexpress-dot-xtrapivotgrid-ad97f371.md
A column field value to be pinned.
Namespace : DevExpress.XtraPivotGrid
Assembly : DevExpress.PivotGrid.v25.2.Core.dll
NuGet Packages : DevExpress.PivotGrid.Core, DevExpress.Win.Navigation
public class FixedFieldValue :
IXtraSupportDeserializeCollectionItem,
IFixedFieldValue
Public Class FixedFieldValue
Implements IXtraSupportDeserializeCollectionItem,
IFixedFieldValue
To pin a column, follow the steps below:
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))
IXtraSupportDeserializeCollectionItem
Object FixedFieldValue
See Also