Skip to main content
.NET 6.0+

XPDataView.PopulateProperties(XPClassInfo) Method

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

Namespace: DevExpress.Xpo

Assembly: DevExpress.Xpo.v23.2.dll

NuGet Package: DevExpress.Xpo

Declaration

public void PopulateProperties(
    XPClassInfo classInfo
)

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.

Remarks

This method performs the following:

  • Clears the XPDataView.Properties collection.
  • Populates this collection with columns, based on the persistent properties of an object whose metadata information is passed as the classInfo parameter. The properties are obtained via the XPClassInfo.PersistentProperties.

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

See Also