Skip to main content
A newer version of this page is available. .
.NET Framework 4.5.2+

XPDataView Class

The data source that displays data from result sets.

Namespace: DevExpress.Xpo

Assembly: DevExpress.Xpo.v19.2.dll

Declaration

[ToolboxTabName("DX.19.2: ORM Components")]
[ToolboxBitmap(typeof(ToolboxIconsRootNS), "XPDataView")]
public class XPDataView :
    Component,
    ISupportInitialize,
    IBindingList,
    IList,
    ICollection,
    IEnumerable,
    ITypedList,
    IFilteredXtraBindingList,
    IFilteredDataSource,
    IXPDictionaryProvider
[ToolboxTabName("DX.19.2: ORM Components")]
public class XPDataView :
    Component,
    ISupportInitialize,
    IBindingList,
    ICollection,
    IEnumerable,
    IList,
    ITypedList,
    IFilteredXtraBindingList,
    IFilteredDataSource,
    IXPDictionaryProvider

Remarks

Like an XPView, the XPDataView is intended only as a data source for visual data-aware controls, to display data from result sets. Its main difference from the XPView, XPCollection, and XPCursor, is that the XPDataView does not retrieve data from a data store. Rather, it simply displays the data that is already retrieved from a data store, to a result set.

The data view’s columns are stored in the XPDataView.Properties collection. When a new instance of the XPDataView class is created, this collection is empty. So, you should manually populate it and then load the result set data into the data view.

An XPDataView 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 data views, see XPDataView.

Inheritance

See Also