.NET Framework 4.5.2+
.NET Framework 4.5.2+
.NET Standard 2.0+

ViewProperty.Property Property

Gets or sets the expression used to filter rows, calculate the values in a column, or create an aggregate column.

Namespace: DevExpress.Xpo

Assembly: DevExpress.Xpo.v21.2.dll


public CriteriaOperator Property { get; set; }

Property Value

Type Description

A CriteriaOperator descendant that contains the expression used to calculate the values in a column.


When creating an expression, use the ViewProperty.Name property to refer to columns within a view. For more information, see the Creating Expression Columns in MSDN.


The following example demonstrates how to populate the view’s XPView.Properties collection.

using DevExpress.Xpo;
// ...
xpView1.Properties.AddRange(new ViewProperty[] {
  new ViewProperty("Name", SortDirection.None, "[Name]", false, true),
  new ViewProperty("CompanyName", SortDirection.None, "[Customer.CompanyName]", false, true),
  new ViewProperty("Payment", SortDirection.None, "[Payments].Sum([Amount])", false, true),
  new ViewProperty("EmployeeFullName", SortDirection.None, "[Employee.FirstName] + ' ' + 
    [Employee.LastName]", false, true)});
See Also