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
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