Skip to main content
.NET Framework 4.6.2+

ViewProperty(String, SortDirection, String, Boolean, Boolean) Constructor

Initializes a new instance of the ViewProperty class with specified settings.

Namespace: DevExpress.Xpo

Assembly: DevExpress.Xpo.v24.2.dll

Declaration

public ViewProperty(
    string name,
    SortDirection sorting,
    string property,
    bool group,
    bool fetch
)

Parameters

Name Type Description
name String

A String value which specifies the property name. This value is assigned to the ViewProperty.Name property.

sorting SortDirection

A SortDirection enumeration value which specifies the column’s sort order. This value is assigned to the ViewProperty.Sorting property.

property String

A String value which specifies the expression used to calculate the values in a column. This value is assigned to the ViewProperty.Property property.

group Boolean

true to group the view by the values of this property; otherwise, false. This value is assigned to the ViewProperty.Group property.

fetch Boolean

true to retrieve data for the property from a data store; otherwise, false. This value is assigned to the ViewProperty.Fetch property.

See Also