corelibraries-devexpress-dot-xtrapivotgrid-dot-pivotgridfieldbase-8cf0de92.md
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
[DefaultValue(null)]
public string OLAPDimensionCaption { get; set; }
<DefaultValue(Nothing)>
Public Property OLAPDimensionCaption As String
| Type | Default | Description |
|---|---|---|
| String | null |
A string that is the OLAP dimension caption displayed in the Customization form.
|
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
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
pivotGridControl1.Fields("[Customer].[Country].[Country]").Area = PivotArea.RowArea
pivotGridControl1.Fields("[Customer].[Country].[Country]").OLAPDimensionCaption = "TEST"
pivotGridControl1.Fields("[Customer].[Country].[Country]").Visible = True
See Also