corelibraries-devexpress-dot-xtrapivotgrid-7235a49b.md
A datasource used to access OLAP data via XMLA.
Namespace : DevExpress.XtraPivotGrid
Assembly : DevExpress.PivotGrid.v25.2.Core.dll
NuGet Packages : DevExpress.PivotGrid.Core, DevExpress.Win.Navigation
public class PivotGridXmlaDataSource :
OLAPDataSourceBase
Public Class PivotGridXmlaDataSource
Inherits OLAPDataSourceBase
The PivotGridXmlaDataSource class is obsolete. To bind a pivot grid to an OLAP cube via the XMLA data access standard, set the pivot grid’s OLAPDataProvider property to XMLA and assign the connection string to the OLAPConnectionString property (see the example below).
To learn more, see Binding to OLAP Data Sources.
Tip
You need an IIS server with a data pump configured on it to serve as a proxy to bind a PivotGridControl to an OLAP server via XMLA.
Documentation : Configure HTTP Access to Analysis Services on IIS 8.0
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.
Xmla.OLAPConnectionString = Data Source=http://demos.devexpress.com/Services/OLAP/msmdpump.dll;" +
"Initial Catalog=Adventure Works DW Standard Edition;Cube Name=Adventure Works";
Note that a valid connection string should include the following parameters: Provider, Data Source, Initial Catalog, and Cube Name.
using System;
using System.Windows.Forms;
using DevExpress.XtraPivotGrid;
namespace XtraPivotGrid_XMLA {
public partial class Form1 : Form {
public Form1() {
InitializeComponent();
}
void Form1_Load(object sender, EventArgs e) {
// Specifies that PivotGridControl should use the XMLA data access standard
// to bind to an OLAP cube.
pivotGridControl1.OLAPDataProvider = OLAPDataProvider.Xmla;
// Configures a data connection.
// Specifies a string that encapsulates connection parameters
// required to access the desired OLAP cube.
pivotGridControl1.OLAPConnectionString =
"Data Source=http://demos.devexpress.com/Services/OLAP/msmdpump.dll;" +
"Initial Catalog=Adventure Works DW Standard Edition;Cube Name=Adventure Works";
}
}
}
Imports System
Imports System.Windows.Forms
Imports DevExpress.XtraPivotGrid
Namespace XtraPivotGrid_XMLA
Public Partial Class Form1
Inherits Form
Public Sub New()
InitializeComponent()
End Sub
Private Sub Form1_Load(ByVal sender As Object, ByVal e As EventArgs)
' Specifies that PivotGridControl should use the XMLA data access standard
' to bind to an OLAP cube.
pivotGridControl1.OLAPDataProvider = OLAPDataProvider.Xmla
' Configures a data connection.
' Specifies a string that encapsulates connection parameters
' required to access the desired OLAP cube.
pivotGridControl1.OLAPConnectionString = "Data Source=http://demos.devexpress.com/Services/OLAP/msmdpump.dll;" & "Initial Catalog=Adventure Works DW Standard Edition;Cube Name=Adventure Works"
End Sub
End Class
End Namespace
Object DevExpress.PivotGrid.QueryMode.QueryDataSource<DevExpress.PivotGrid.OLAP.OLAPCubeColumn> OLAPDataSourceBase PivotGridXmlaDataSource
See Also