Skip to main content
.NET Framework 4.5.2+
  • The page you are viewing does not exist in the .NET 6.0+ platform documentation. This link will take you to the parent topic of the current section.

XpoDataSource.Session Property

Gets or sets the Session used by the current data source control to load and save persistent objects.

Namespace: DevExpress.Xpo

Assembly: DevExpress.Xpo.v24.1.dll

NuGet Packages: DevExpress.Win.PivotGrid, DevExpress.Win.TreeMap, DevExpress.Xpo

Declaration

[Browsable(false)]
public Session Session { get; set; }

Property Value

Type Description
Session

A Session object connected to a data store.

Remarks

A session which the data source control will work with can be assigned within a page’s Init event handler.

using System;
using DevExpress.Xpo;
// ...
Session session1;
protected void Page_Init(object sender, EventArgs e) {
    session1 = new Session();
    XpoDataSource1.Session = session1;
}

For more information on how to retrieve specific data, see How To: Connect XPO to a Database Server (ASP.NET WebForms).

See Also