Skip to main content
.NET 6.0+

XPDataView.PopulateProperties(List<XPMemberInfo>) Method

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

Namespace: DevExpress.Xpo

Assembly: DevExpress.Xpo.v24.1.dll

NuGet Package: DevExpress.Xpo

Declaration

public void PopulateProperties(
    List<XPMemberInfo> memberInfoList
)

Parameters

Name Type Description
memberInfoList List<XPMemberInfo>

A list of XPMemberInfo objects identifying persistent properties 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 metadata is passed as the memberInfoList 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 memberInfoList list 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