.NET Framework 4.5.2+
.NET Framework 4.5.2+
.NET Standard 2.0+
.NET Core 3.0+
The page you are viewing does not exist in the .NET Core 3.0+ platform documentation. This link will take you to the parent topic of the current section.

XPView Class

The view that stores data retrieved from persistent objects.

Namespace: DevExpress.Xpo

Assembly: DevExpress.Xpo.v20.1.dll

Declaration

[ToolboxTabName("DX.20.1: ORM Components")]
[ToolboxBitmap(typeof(ToolboxIconsRootNS), "XPView")]
public class XPView :
    Component,
    ISupportInitialize,
    IBindingList,
    IList,
    ICollection,
    IEnumerable,
    ITypedList,
    IFilteredXtraBindingList,
    IFilteredDataSource,
    IXPClassInfoAndSessionProvider,
    IXPClassInfoProvider,
    IXPDictionaryProvider,
    ISessionProvider,
    IObjectLayerProvider,
    IDataLayerProvider
<ToolboxTabName("DX.20.1: ORM Components")>
<ToolboxBitmap(GetType(ToolboxIconsRootNS), "XPView")>
Public Class XPView
    Inherits Component
    Implements ISupportInitialize,
               IBindingList,
               IList,
               ICollection,
               IEnumerable,
               ITypedList,
               IFilteredXtraBindingList,
               IFilteredDataSource,
               IXPClassInfoAndSessionProvider,
               IXPClassInfoProvider,
               IXPDictionaryProvider,
               ISessionProvider,
               IObjectLayerProvider,
               IDataLayerProvider
[ToolboxTabName("DX.20.1: ORM Components")]
[ToolboxBitmap(typeof(ToolboxIconsRootNS), "XPView")]
public class XPView :
    Component,
    ISupportInitialize,
    IBindingList,
    ICollection,
    IEnumerable,
    IList,
    ITypedList,
    IFilteredXtraBindingList,
    IFilteredDataSource,
    IXPClassInfoAndSessionProvider,
    IXPClassInfoProvider,
    IXPDictionaryProvider,
    ISessionProvider,
    IObjectLayerProvider,
    IDataLayerProvider
<ToolboxTabName("DX.20.1: ORM Components")>
<ToolboxBitmap(GetType(ToolboxIconsRootNS), "XPView")>
Public Class XPView
    Inherits Component
    Implements ISupportInitialize,
               IBindingList,
               ICollection,
               IEnumerable,
               IList,
               ITypedList,
               IFilteredXtraBindingList,
               IFilteredDataSource,
               IXPClassInfoAndSessionProvider,
               IXPClassInfoProvider,
               IXPDictionaryProvider,
               ISessionProvider,
               IObjectLayerProvider,
               IDataLayerProvider

Remarks

Unlike an XPCollection that is populated with persistent objects, the XPView is only intended for displaying data. Its XPView.Session property specifies the data store that the information is retrieved from. If the session isn't specified, the view works with the default session (Session.DefaultSession). The type of retrieved objects is specified by the XPView.ObjectClassInfo property.

The view's columns are stored in the XPView.Properties collection. Note when a new instance of the XPView class is created, its XPView.Properties collection is empty. Therefore, you should manually populate it.

An XPView implements the IBindingList and ITypedList interfaces, so it can serve as a data source for a visual data-aware control (for instance, the XtraGrid). For more information and examples on how to use views, see XPView Overview.

Implements

See Also