Back to Devexpress

XPInstantFeedbackView.ResolveSession Event

xpo-devexpress-dot-xpo-dot-xpinstantfeedbackview-e67ed9ae.md

latest4.1 KB
Original Source

XPInstantFeedbackView.ResolveSession Event

Occurs when the XPServerModeView requests a Session to retrieve objects from the data store.

Namespace : DevExpress.Xpo

Assembly : DevExpress.Xpo.v25.2.dll

NuGet Package : DevExpress.Xpo

Declaration

csharp
public event EventHandler<ResolveSessionEventArgs> ResolveSession
vb
Public Event ResolveSession As EventHandler(Of ResolveSessionEventArgs)

Event Data

The ResolveSession event's data class is ResolveSessionEventArgs. The following properties provide information specific to this event:

PropertyDescription
SessionSpecifies the session to be used to load and save persistent objects.

The following code snippets (auto-collected from DevExpress Examples) contain references to the ResolveSession event.

Note

The algorithm used to collect these code examples remains a work in progress. Accordingly, the links and snippets below may produce inaccurate results. If you encounter an issue with code examples below, please use the feedback form on this page to report the issue.

how-to-bind-wpf-grid-to-data/CS/CodeBehind/XPO/InstantFeedbackMode/MainWindow.xaml.cs#L21

csharp
var source = new XPInstantFeedbackView(typeof(Issue), properties, null);
source.ResolveSession += (o, e) => {
    e.Session = new Session();

wpf-data-grid-implement-crud-operations/CS/CodeBehind/XPO/InstantFeedbackMode/MainWindow.xaml.cs#L24

csharp
var source = new XPInstantFeedbackView(typeof(Issue), properties, null);
source.ResolveSession += (o, e) => {
    e.Session = new Session();

XPO_how-to-bind-data-to-winforms-controls-using-xpservermodeview-or-xpinstantfeedbackview/CS/XPServerModeViewDemo/Form1.cs#L22

csharp
};
xpInstantFeedbackView1.ResolveSession += (s, e) => {
    e.Session = session;

how-to-bind-wpf-grid-to-data/VB/CodeBehind/XPO/InstantFeedbackMode/MainWindow.xaml.vb#L18

vb
Dim source = New XPInstantFeedbackView(GetType(Issue), properties, Nothing)
AddHandler source.ResolveSession, Sub(o, e) e.Session = New Session()
grid.ItemsSource = source

XPO_how-to-bind-data-to-winforms-controls-using-xpservermodeview-or-xpinstantfeedbackview/VB/XPServerModeViewDemo/Form1.vb#L24

vb
End Sub
AddHandler xpInstantFeedbackView1.ResolveSession, Sub(s, e)
    e.Session = session

See Also

XPInstantFeedbackView Class

XPInstantFeedbackView Members

DevExpress.Xpo Namespace