The requested page is not available for the requested platform. You are viewing the content for .NET Framework 4.5.2+ platform.
.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.v19.2.dll

Declaration

[TypeConverter("DevExpress.Xpo.Design.CriteriaConverter, DevExpress.Xpo.v19.2.Design, Version=19.2.99.0, Culture=neutral, PublicKeyToken=c38a27d2243c2672")]
public CriteriaOperator Property { get; set; }
<TypeConverter("DevExpress.Xpo.Design.CriteriaConverter, DevExpress.Xpo.v19.2.Design, Version=19.2.99.0, Culture=neutral, PublicKeyToken=c38a27d2243c2672")>
Public Property Property As CriteriaOperator
[TypeConverter("DevExpress.Xpo.Design.CriteriaConverter, DevExpress.Xpo.v19.2.Design, Version=19.2.99.0, Culture=neutral, PublicKeyToken=c38a27d2243c2672")]
public CriteriaOperator Property { get; set; }
<TypeConverter("DevExpress.Xpo.Design.CriteriaConverter, DevExpress.Xpo.v19.2.Design, Version=19.2.99.0, Culture=neutral, PublicKeyToken=c38a27d2243c2672")>
Public Property Property As CriteriaOperator

Property Value

Type Description
CriteriaOperator

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

Property Value

Type Description
CriteriaOperator

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

Remarks

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.

Examples

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