The requested page is not available for the requested platform. You are viewing the content for .NET Framework 4.5.2+ platform.
.NET Framework 4.5.2+
.NET Framework 4.5.2+
.NET Standard 2.0+

XPView Class

The view that stores data retrieved from persistent objects.

Namespace: DevExpress.Xpo

Assembly: DevExpress.Xpo.v19.1.dll

Declaration

[ToolboxTabName("DX.19.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.19.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.19.1: ORM Components")]
public class XPView : Component, ISupportInitialize, IBindingList, ICollection, IEnumerable, IList, ITypedList, IFilteredXtraBindingList, IFilteredDataSource, IXPClassInfoAndSessionProvider, IXPClassInfoProvider, IXPDictionaryProvider, ISessionProvider, IObjectLayerProvider, IDataLayerProvider
<ToolboxTabName("DX.19.1: ORM Components")>
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.

Inheritance

Implements

DevExpress.Data.Filtering.Helpers.IFilteredXtraBindingList
DevExpress.Data.Filtering.Helpers.IFilteredDataSource
DevExpress.Xpo.Helpers.IXPClassInfoAndSessionProvider
DevExpress.Xpo.Helpers.IXPClassInfoProvider
DevExpress.Xpo.Helpers.IObjectLayerProvider
DevExpress.Xpo.Helpers.IDataLayerProvider
DevExpress.Xpo.Metadata.Helpers.IXPDictionaryProvider
See Also