Skip to main content
.NET Framework 4.5.2+

XPDataView(XPDictionary, XPClassInfo, LoadDataMemberOrderItem[], SelectedData) Constructor

Initializes a new instance of the XPDataView class, populates it with columns and loads data based on the specified settings.

Namespace: DevExpress.Xpo

Assembly: DevExpress.Xpo.v24.1.dll

NuGet Package: DevExpress.Xpo

Declaration

public XPDataView(
    XPDictionary dictionary,
    XPClassInfo classInfo,
    LoadDataMemberOrderItem[] members,
    SelectedData data
)

Parameters

Name Type Description
dictionary XPDictionary

An XPDictionary object which represents the metadata provider. This value is assigned to the XPDataView.Dictionary property.

classInfo XPClassInfo

An XPClassInfo object containing metadata information on the object whose persistent properties provide metadata information to populate the XPDataView.Properties collection.

members LoadDataMemberOrderItem[]

An array of LoadDataMemberOrderItem objects which provide mapping information.

data SelectedData

An SelectedData object which represents a result set providing data to be loaded into the data view.

Remarks

This constructor performs the following:

Note

If the number of columns within the XPDataView.Properties collection and data result set do not match, an exception is thrown.

See Also