Back to Devexpress

XPBindingSource Class

xpo-devexpress-dot-xpo-983dd7bb.md

latest4.6 KB
Original Source

XPBindingSource Class

A binding source that binds data from a data source to a control.

Namespace : DevExpress.Xpo

Assembly : DevExpress.Xpo.v25.2.dll

NuGet Package : DevExpress.Xpo

Declaration

csharp
public class XPBindingSource :
    Component,
    IBindingList,
    ICollection,
    IEnumerable,
    IList,
    ITypedList,
    ISupportInitialize,
    IXPClassInfoProvider,
    IXPDictionaryProvider,
    ISessionProvider,
    IObjectLayerProvider,
    IDataLayerProvider,
    IObjectChange
vb
Public Class XPBindingSource
    Inherits Component
    Implements IBindingList,
               ICollection,
               IEnumerable,
               IList,
               ITypedList,
               ISupportInitialize,
               IXPClassInfoProvider,
               IXPDictionaryProvider,
               ISessionProvider,
               IObjectLayerProvider,
               IDataLayerProvider,
               IObjectChange
csharp
public class XPBindingSource :
    Component,
    IBindingList,
    IList,
    ICollection,
    IEnumerable,
    ITypedList,
    ISupportInitialize,
    IXPClassInfoProvider,
    IXPDictionaryProvider,
    ISessionProvider,
    IObjectLayerProvider,
    IDataLayerProvider,
    IObjectChange
vb
Public Class XPBindingSource
    Inherits Component
    Implements IBindingList,
               IList,
               ICollection,
               IEnumerable,
               ITypedList,
               ISupportInitialize,
               IXPClassInfoProvider,
               IXPDictionaryProvider,
               ISessionProvider,
               IObjectLayerProvider,
               IDataLayerProvider,
               IObjectChange

Remarks

XPBindingSource is a lightweight data source for WinForms and WPF runtime-only applications. It binds UI controls and uses XPO sources internally (XPCollection, XPQuery<T> , XPView). You can think of it as an XPO analog of the standard BindingSource.

The XPBindingSource component binds data from a data source to a control and conducts all interaction between the data source and the control. The XPBindingSource was specifically developed for XPO.

XPBindingSource simplifies development for the following use cases:

  • XPO data sources used on visually inherited Windows Forms and User Controls (KB Article).
  • Data refresh in persistent objects and collections (documentation).
  • Immediate data refresh for bound UI controls (KB Article).
  • Binding to nullable properties (KB Article).
  • Binding to object references without complex or custom property descriptors (KB Article).

The following example demonstrates how to use the XPBindingSource component: How to Bind Data to WinForms Controls.

Implements

ISessionProvider

Inheritance

Object MarshalByRefObject Component XPBindingSource

See Also

XPBindingSource Members

DevExpress.Xpo Namespace