Back to Devexpress

ServerViewProperty.Property Property

xpo-devexpress-dot-xpo-dot-serverviewproperty.md

latest2.4 KB
Original Source

ServerViewProperty.Property Property

Gets or sets the criteria to calculate property values.

Namespace : DevExpress.Xpo

Assembly : DevExpress.Xpo.v25.2.dll

NuGet Package : DevExpress.Xpo

Declaration

csharp
public CriteriaOperator Property { get; set; }
vb
Public Property [Property] As CriteriaOperator

Property Value

TypeDescription
CriteriaOperator

A CriteriaOperator descendant that contains the expression to calculate property values.

|

Remarks

Use the Name property to reference specific columns in an expression.

Examples

The following example demonstrates how to populate a server view’s XPServerModeView.Properties collection.

csharp
using DevExpress.Xpo;
// ...
xpServerModeView1.Properties.AddRange(new ServerViewProperty[] {
  new ServerViewProperty("Name", SortDirection.None, "[Name]"),
  new ServerViewProperty("CompanyName", SortDirection.None, "[Customer.CompanyName]"),
  new ServerViewProperty("Payment", SortDirection.None, "[Payments].Sum([Amount])"),
  new ServerViewProperty("EmployeeFullName", SortDirection.None, "[Employee.FirstName] + ' ' + 
    [Employee.LastName]")});
vb
Imports DevExpress.Xpo
' ...
XpServerModeView1.Properties.AddRange(New ServerViewProperty() { _
  New ServerViewProperty("Name", SortDirection.None, "[Name]"), _
  New ServerViewProperty("CompanyName", SortDirection.None, "[Customer.CompanyName]"), _
  New ServerViewProperty("Payment", SortDirection.None, "[Payments].Sum([Amount])"), _
  New ServerViewProperty("EmployeeFullName", SortDirection.None, "[Employee.FirstName] + ' ' + _
    [Employee.LastName]")})

See Also

ServerViewProperty Class

ServerViewProperty Members

DevExpress.Xpo Namespace