.NET Framework 4.5.2+
.NET Framework 4.5.2+
.NET Standard 2.0+
A newer version of this page is available. Switch to the current version.

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.v19.2.dll

Declaration

[TypeConverter(typeof(ServerViewPropertyConverter))]
public class ServerViewProperty :
    IDataColumnInfoProvider,
    INotifyPropertyChanged
<TypeConverter(GetType(ServerViewPropertyConverter))>
Public Class ServerViewProperty
    Implements 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]")});

Inheritance

See Also