Back to Devexpress

XPO Data Source

dashboard-401313-winforms-dashboard-winforms-designer-create-dashboards-in-the-winforms-designer-providing-data-xpo-data-source.md

latest3.0 KB
Original Source

XPO Data Source

  • Sep 24, 2025
  • 3 minutes to read

An XPO data source gets data from eXpress Persistent Objects.

Design Time

The XPO Data Source requires additional configuration to allow users to create the data source in a Data Source Wizard:

Tip

Documentation: Getting Started with XPO

Example on GitHub : How to Bind a Dashboard to the XPO Data Source at Design-Time

To connect to the pre-configured XPO data source, follow the steps below:

  1. Click the New Data Source button in the Data Source ribbon tab.

  2. On the first page of the invoked Data Source Wizard dialog, specify whether you want to use an existing data connection or create a new data connection.

  3. On the next page, select eXpress Persistent Objects (XPO) and click Next. Then, specify the entity type.

Runtime

  1. Create a DashboardXpoDataSource object and use the ConnectionStringName property to specify the name of the connection string defined in the application’s configuration file.

  2. Pass the persistent object type to the SetEntityType method.

The code sample below illustrates how to connect to the XPO data source.

csharp
using DevExpress.DashboardCommon;
// ...
public static DashboardXpoDataSource CreateXpoDataSource()
{
    DashboardXpoDataSource dataSource = new DashboardXpoDataSource()
    {
        ConnectionStringName = "northwind"
    };
    dataSource.SetEntityType(typeof(nwind.Customers));
    return dataSource;
}
vb
Imports DevExpress.DashboardCommon
' ...
Public Shared Function CreateXpoDataSource() As DashboardXpoDataSource
  Dim dataSource As New DashboardXpoDataSource() With {.ConnectionStringName = "northwind"}
  dataSource.SetEntityType(GetType(nwind.Customers))
  Return dataSource
End Function

See Also

Security Considerations in Windows Forms