Back to Devexpress

PivotGridFieldBase.OLAPDimensionCaption Property

corelibraries-devexpress-dot-xtrapivotgrid-dot-pivotgridfieldbase-8cf0de92.md

latest3.3 KB
Original Source

PivotGridFieldBase.OLAPDimensionCaption Property

Specifies the OLAP dimension’s caption displayed in the Customization form’s field list.

Namespace : DevExpress.XtraPivotGrid

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

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

Declaration

csharp
[DefaultValue(null)]
public string OLAPDimensionCaption { get; set; }
vb
<DefaultValue(Nothing)>
Public Property OLAPDimensionCaption As String

Property Value

TypeDefaultDescription
Stringnull

A string that is the OLAP dimension caption displayed in the Customization form.

|

Remarks

You can group dimensions in the Customization form’s field list by setting the OLAPDimensionCaption to the same value, as illustrated in the picture below. The City and Country fields have the OLAPDimensionCaption property set to Location.

The following code snippet (auto-collected from DevExpress Examples) contains a reference to the OLAPDimensionCaption property.

Note

The algorithm used to collect these code examples remains a work in progress. Accordingly, the links and snippets below may produce inaccurate results. If you encounter an issue with code examples below, please use the feedback form on this page to report the issue.

winforms-pivot-grid-connect-to-an-olap-datasource/CS/WinOlapRetrieveFieldsExample/Form1.cs#L33

csharp
pivotGridControl1.Fields["[Customer].[Country].[Country]"].Area = PivotArea.RowArea;
pivotGridControl1.Fields["[Customer].[Country].[Country]"].OLAPDimensionCaption = "TEST";
pivotGridControl1.Fields["[Customer].[Country].[Country]"].Visible = true;

winforms-pivot-grid-connect-to-an-olap-datasource/VB/WinOlapRetrieveFieldsExample/Form1.vb#L34

vb
pivotGridControl1.Fields("[Customer].[Country].[Country]").Area = PivotArea.RowArea
pivotGridControl1.Fields("[Customer].[Country].[Country]").OLAPDimensionCaption = "TEST"
pivotGridControl1.Fields("[Customer].[Country].[Country]").Visible = True

See Also

PivotGridFieldBase Class

PivotGridFieldBase Members

DevExpress.XtraPivotGrid Namespace