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(XPDictionary, XPClassInfo, 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.v19.1.dll

Declaration

public XPDataView(XPDictionary dictionary, XPClassInfo classInfo, SelectedData data)
Public Sub New(dictionary As XPDictionary, classInfo As XPClassInfo, data As SelectedData)
public XPDataView(XPDictionary dictionary, XPClassInfo classInfo, SelectedData data)
Public Sub New(dictionary As XPDictionary, classInfo As XPClassInfo, data As SelectedData)

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.

data SelectedData

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

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.

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:

  • Obtains a list of persistent properties from an object whose metadata information is passed as the classInfo parameter, via XPClassInfo.PersistentProperties.
  • Populates the data view with columns by calling the appropriate XPDataView.PopulateProperties overloaded method and passing the list of persistent properties as its memberInfoList parameter.
  • Loads data into the data view via XPDataView.LoadData.
Note

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

See Also