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+

XPDataView Class

The data source that displays data from result sets.

Namespace: DevExpress.Xpo

Assembly: DevExpress.Xpo.v19.1.dll

Declaration

[ToolboxTabName("DX.19.1: ORM Components")]
[ToolboxBitmap(typeof(ToolboxIconsRootNS), "XPDataView")]
public class XPDataView : Component, ISupportInitialize, IBindingList, IList, ICollection, IEnumerable, ITypedList, IFilteredXtraBindingList, IFilteredDataSource, IXPDictionaryProvider
<ToolboxTabName("DX.19.1: ORM Components")>
<ToolboxBitmap(GetType(ToolboxIconsRootNS), "XPDataView")>
Public Class XPDataView
    Inherits Component
    Implements ISupportInitialize, IBindingList, IList, ICollection, IEnumerable, ITypedList, IFilteredXtraBindingList, IFilteredDataSource, IXPDictionaryProvider
[ToolboxTabName("DX.19.1: ORM Components")]
public class XPDataView : Component, ISupportInitialize, IBindingList, ICollection, IEnumerable, IList, ITypedList, IFilteredXtraBindingList, IFilteredDataSource, IXPDictionaryProvider
<ToolboxTabName("DX.19.1: ORM Components")>
Public Class XPDataView
    Inherits Component
    Implements 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