XPDataView.PopulateProperties(XPClassInfo, String[]) Method
In This Article
Populates the data view with columns based on the specified metadata information.
Namespace: DevExpress.Xpo
Assembly: DevExpress.Xpo.v24.2.dll
NuGet Package: DevExpress.Xpo
#Declaration
public void PopulateProperties(
XPClassInfo classInfo,
params string[] members
)
#Parameters
Name | Type | Description |
---|---|---|
class |
XPClass |
An XPClass |
members | String[] | An array of property names that are used to populate the XPData |
#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 Populate
- A property that is not defined within the class
Info object. - A struct type member.
- A reference to a class with a struct type member.
- A collection used in object relations.
See Also