Back to Devexpress

PivotGridFieldBase.TopValueMode Property

corelibraries-devexpress-dot-xtrapivotgrid-dot-pivotgridfieldbase-b07af538.md

latest2.5 KB
Original Source

PivotGridFieldBase.TopValueMode Property

Gets or sets whether top n values for a specified data field are calculated based on all data source records or in the parent category.

Namespace : DevExpress.XtraPivotGrid

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

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

Declaration

csharp
[DefaultValue(TopValueMode.Default)]
public TopValueMode TopValueMode { get; set; }
vb
<DefaultValue(TopValueMode.Default)>
Public Property TopValueMode As TopValueMode

Property Value

TypeDefaultDescription
TopValueModeDefault

A TopValueMode enumeration member that specifies base records for top n calculation.

|

Available values:

NameDescription
Default

The default parameter value.

| | AllValues |

Specifies the top n values in all the data source records.

| | ParentFieldValues |

Specifies the top n values in the parent category.

|

Remarks

If the TopValueMode is set to the TopValueMode.Default value, the actual calculation mode is dependent on the operating mode. When the pivot grid operates in server mode, top n values are calculated against all data source records, as if the property is set to the TopValueMode.AllValues value. Otherwise, top n values in the parent category are calculated.

Important

Use the TopValueMode property in the server mode only. This property is not in effect in the standard data processing mode.

See Also

PivotGridFieldBase Class

PivotGridFieldBase Members

DevExpress.XtraPivotGrid Namespace