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.1.dll
NuGet Packages: DevExpress.Win.PivotGrid, DevExpress.Win.TreeMap, DevExpress.Xpo
NuGet Package: DevExpress.Xpo
Declaration
Parameters
Name | Type | Description |
---|---|---|
name | String | A String value which specifies the property name. This value is assigned to the ViewProperty.Name property. |
property | CriteriaOperator | A CriteriaOperator object which specifies the expression used to calculate the values in a column. |
group | Boolean | true to group the view by this property; otherwise, false. This value is assigned to the ViewProperty.Group property. |
fetch | Boolean | true to retrieve data; otherwise, false. This value is assigned to the ViewProperty.Fetch property. |
sorting | SortDirection | A SortDirection enumeration value which specifies the column’s sort order. This value is assigned to the ViewProperty.Sorting property. |
Returns
Type | Description |
---|---|
ViewProperty | The ViewProperty object that was added to the collection. |