Class ViewProperty
- Namespace
- DevExpress.Xpo
- Assembly
- DevExpress.Xpo.v24.1.dll
A view column.
[TypeConverter(typeof(ViewPropertyConverter))]
public class ViewProperty : IDataColumnInfoProvider
- Inheritance
-
ViewProperty
- Implements
-
IDataColumnInfoProvider
- Inherited Members
Constructors
ViewProperty()
Initializes a new instance of the ViewProperty class with the default settings.
public ViewProperty()
ViewProperty(string, SortDirection, CriteriaOperator, bool, bool)
Initializes a new instance of the ViewProperty class with the specified settings.
public ViewProperty(string name, SortDirection sorting, CriteriaOperator property, bool group, bool fetch)
Parameters
name
stringA string value which specifies the property name. This value is assigned to the ViewProperty.Name property.
sorting
SortDirectionA SortDirection enumeration value which specifies the column’s sort order. This value is assigned to the ViewProperty.Sorting property.
property
CriteriaOperatorA DevExpress.Data.Filtering.CriteriaOperator descendant which the expression used to calculate the values in a column. This value is assigned to the ViewProperty.Property property.
group
booltrue to group the view by the values of this property; otherwise, false. This value is assigned to the ViewProperty.Group property.
fetch
booltrue to retrieve data for the property from a data store; otherwise, false. This value is assigned to the ViewProperty.Fetch property.
ViewProperty(string, SortDirection, string, bool, bool)
Initializes a new instance of the ViewProperty class with specified settings.
public ViewProperty(string name, SortDirection sorting, string property, bool group, bool fetch)
Parameters
name
stringA string value which specifies the property name. This value is assigned to the ViewProperty.Name property.
sorting
SortDirectionA SortDirection enumeration value which specifies the column’s sort order. This value is assigned to the ViewProperty.Sorting property.
property
stringA string value which specifies the expression used to calculate the values in a column. This value is assigned to the ViewProperty.Property property.
group
booltrue to group the view by the values of this property; otherwise, false. This value is assigned to the ViewProperty.Group property.
fetch
booltrue to retrieve data for the property from a data store; otherwise, false. This value is assigned to the ViewProperty.Fetch property.
Properties
Fetch
Gets or sets whether to retrieve data for the property from a data store.
public bool Fetch { get; set; }
Property Value
- bool
true to retrieve data for the property from a data store; otherwise, false.
Group
Gets or sets whether the view is grouped by the values of this property (column).
public bool Group { get; set; }
Property Value
- bool
true to group the view by the values of this property; otherwise, false.
Name
Gets or sets the property’s name.
public string Name { get; set; }
Property Value
Property
Gets or sets the expression used to filter rows, calculate the values in a column, or create an aggregate column.
[TypeConverter("DevExpress.Xpo.Design.CriteriaConverter, DevExpress.Xpo.v24.1.Design, Version=24.1.4.0, Culture=neutral, PublicKeyToken=b88d1754d700e49a")]
public CriteriaOperator Property { get; set; }
Property Value
- CriteriaOperator
A DevExpress.Data.Filtering.CriteriaOperator descendant that contains the expression used to calculate the values in a column.
Sorting
Gets or sets the column’s sort order.
public SortDirection Sorting { get; set; }
Property Value
- SortDirection
A SortDirection enumeration value which specifies the column’s sort order.
Methods
SetOwner(XPView)
protected void SetOwner(XPView owner)
Parameters
owner
XPView