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.PopulateProperties(XPClassInfo, String[]) Method

Populates the data view with columns based on the specified metadata information.

Namespace: DevExpress.Xpo

Assembly: DevExpress.Xpo.v19.1.dll

Declaration

public void PopulateProperties(XPClassInfo classInfo, params string[] members)
Public Sub PopulateProperties(classInfo As XPClassInfo, ParamArray members As String())
public void PopulateProperties(XPClassInfo classInfo, params string[] members)
Public Sub PopulateProperties(classInfo As XPClassInfo, ParamArray members As String())

Parameters

Name Type Description
classInfo XPClassInfo

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

members String[]

An array of property names that are used to populate the XPDataView.Properties collection.

Parameters

Name Type Description
classInfo XPClassInfo

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

members String[]

An array of property names that are used to populate the XPDataView.Properties collection.

Remarks

This method performs the following:

  • Clears the XPDataView.Properties collection.
  • Populates this collection with columns based on the properties whose names are passed as the members parameter.

To load data into the data view, call the XPDataView.LoadOrderedData or XPDataView.LoadData method.

Note

The PopulateProperties method throws an exception if the members collection contains any of the following:

  • A property that is not defined within the classInfo object.
  • A struct type member.
  • A reference to a class with a struct type member.
  • A collection used in object relations.
See Also