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.v24.2.dll
Declaration
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.
Example
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