XPView Class
The view that stores data retrieved from persistent objects.
Namespace: DevExpress.Xpo
Assembly: DevExpress.Xpo.v18.2.dll
Declaration
[ToolboxTabName("DX.18.2: ORM Components")]
[ToolboxBitmap(typeof(ToolboxIconsRootNS), "XPView")]
public class XPView :
Component,
ISupportInitialize,
IBindingList,
IList,
ICollection,
IEnumerable,
ITypedList,
IFilteredXtraBindingList,
IFilteredDataSource,
IXPClassInfoAndSessionProvider,
IXPClassInfoProvider,
IXPDictionaryProvider,
ISessionProvider,
IObjectLayerProvider,
IDataLayerProvider
Related API Members
The following members return XPView objects:
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.