Skip to main content
.NET Standard 2.0+

ServerViewProperty Class

The ServerViewProperty stores information that specifies values to be loaded from the data server - property names, criteria, and sort order.

Namespace: DevExpress.Xpo

Assembly: DevExpress.Xpo.v22.1.dll

Declaration

public class ServerViewProperty :
    IDataColumnInfoProvider,
    INotifyPropertyChanged

Remarks

A ServerViewProperty represents each data column to be shown in the UI. The XPServerModeView and XPInstantFeedbackView components use ServerViewProperty instances to retrieve data from the server side.

Examples

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

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]")});

The following code snippets (auto-collected from DevExpress Examples) contain references to the ServerViewProperty class.

Note

The algorithm used to collect these code examples remains a work in progress. Accordingly, the links and snippets below may produce inaccurate results. If you encounter an issue with code examples below, please use the feedback form on this page to report the issue.

Inheritance

Object
ServerViewProperty
See Also