XPView.AddProperty(String, CriteriaOperator, Boolean, Boolean, SortDirection) Method
Creates a new ViewProperty object with the specified settings and appends it to the XPView.Properties collection.
Namespace: DevExpress.Xpo
Assembly: DevExpress.Xpo.v24.2.dll
NuGet Package: DevExpress.Xpo
#Declaration
public ViewProperty AddProperty(
string name,
CriteriaOperator property,
bool group,
bool fetch,
SortDirection sorting
)
#Parameters
Name | Type | Description |
---|---|---|
name | String | A String value which specifies the property name. This value is assigned to the View |
property | Criteria |
A Criteria |
group | Boolean | true to group the view by this property; otherwise, false. This value is assigned to the View |
fetch | Boolean | true to retrieve data; otherwise, false. This value is assigned to the View |
sorting | Sort |
A Sort |
#Returns
Type | Description |
---|---|
View |
The View |