aspnetmvc-devexpress-dot-web-dot-mvc-dot-pivotcustomizationextension-dot-bindtoolap-x28-system-dot-string-x29.md
Binds the PivotCustomizationExtension to an OLAP cube.
Namespace : DevExpress.Web.Mvc
Assembly : DevExpress.Web.Mvc5.v25.2.dll
NuGet Package : DevExpress.Web.Mvc5
public PivotCustomizationExtension BindToOLAP(
string connectionString
)
Public Function BindToOLAP(
connectionString As String
) As PivotCustomizationExtension
| Name | Type | Description |
|---|---|---|
| connectionString | String |
A String that specifies the connection string to an OLAP cube.
|
| Type | Description |
|---|---|
| PivotCustomizationExtension |
A PivotCustomizationExtension object representing the PivotCustomizationExtension.
|
Bind the PivotCustomizationExtension to the same datasource as the PivotGrid to fetch the collection of fields from the datasource via the ASPxPivotGrid.RetrieveFields method ( MVCxPivotGrid.RetrieveFields ). If you add fields manually to the PivotGridSettings.Fields collection, there is no need to bind the PivotCustomizationExtension to data.
A sample OLAP connection string is shown below:
Provider=msolap;Data Source=localhost;Initial Catalog=Adventure Works DW;Cube Name=Adventure Works;Query Timeout=100;
This connection string provides the following parameters:
See Also
PivotCustomizationExtension Class