Back to Devexpress

PivotGridOptionsOLAP.DefaultMemberFields Property

corelibraries-devexpress-dot-xtrapivotgrid-dot-pivotgridoptionsolap-d9d96824.md

latest5.1 KB
Original Source

PivotGridOptionsOLAP.DefaultMemberFields Property

Gets or sets for which filter fields the pivot grid processes only data related to their default members.

Namespace : DevExpress.XtraPivotGrid

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

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

Declaration

csharp
[DefaultValue(PivotDefaultMemberFields.NonVisibleFilterFields)]
public PivotDefaultMemberFields DefaultMemberFields { get; set; }
vb
<DefaultValue(PivotDefaultMemberFields.NonVisibleFilterFields)>
Public Property DefaultMemberFields As PivotDefaultMemberFields

Property Value

TypeDefaultDescription
PivotDefaultMemberFieldsNonVisibleFilterFields

A PivotDefaultMemberFields enumeration member that specifies for which filter fields the pivot grid processes only data related to their default members.

|

Available values:

NameDescription
NonVisibleFilterFields

The Pivot Grid processes only data related to fields’ default members for filter fields that are not visible.

| | AllFilterFields |

The Pivot Grid processes only data related to fields’ default members for all filter fields, except for those fields whose filter condition is not set to ‘Show All’.

|

Property Paths

You can access this nested property as listed below:

LibraryObject TypePath to DefaultMemberFields
WinForms ControlsPivotGridControl

.OptionsOLAP .DefaultMemberFields

| | ASP.NET MVC Extensions | PivotGridSettings |

.OptionsOLAP .DefaultMemberFields

| | ASP.NET Web Forms Controls | ASPxPivotGrid |

.OptionsOLAP .DefaultMemberFields

|

Remarks

In OLAP mode, data is filtered against filter fields in a specific way. If a filter field is not visible, only data related to its default member (a member of the corresponding hierarchy that is set as the default on the server) is processed. Otherwise, data is filtered according to the current filter condition.

For visible filter fields whose filter condition is set to ‘Show All’, you can change this behavior via the DefaultMemberFields property. To process only data related to these fields’ default members, set the DefaultMemberFields property to PivotDefaultMemberFields.AllFilterFields.

To learn more, see OLAP Filtering Specifics.

See Also

OLAP Filtering Specifics

PivotGridOptionsOLAP Class

PivotGridOptionsOLAP Members

DevExpress.XtraPivotGrid Namespace