Skip to main content
.NET 6.0+

XPBindingSource Class

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

Namespace: DevExpress.Xpo

Assembly: DevExpress.Xpo.v24.1.dll

NuGet Package: DevExpress.Xpo

Declaration

public class XPBindingSource :
    Component,
    IBindingList,
    ICollection,
    IEnumerable,
    IList,
    ITypedList,
    ISupportInitialize,
    IXPClassInfoProvider,
    IXPDictionaryProvider,
    ISessionProvider,
    IObjectLayerProvider,
    IDataLayerProvider,
    IObjectChange
public class XPBindingSource :
    Component,
    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

Inheritance

See Also