This example demonstrates how to add connection settings to the Adventure Works cube on the OLAP server.
To bind the Pivot Grid control to an OLAP cube, follow the steps below.
- Set the PivotGridControl.OLAPDataProvider property to Xmla.
- Specify connection settings in the PivotGridControl.OLAPConnectionString property. The following connection string is used in this example:
Note that a valid connection string should include the following parameters: Provider, Data Source, Initial Catalog, and Cube Name.
OLAPConnectionString = Data Source=http://demos.devexpress.com/Services/OLAP/msmdpump.dll;" + "Initial Catalog=Adventure Works DW Standard Edition;Cube Name=Adventure Works";