ServerViewPropertiesCollection.Add(ServerViewProperty) Method
Adds a ServerViewProperty object to the ServerViewPropertiesCollection.
Namespace: DevExpress.Xpo
Assembly: DevExpress.Xpo.v24.1.dll
NuGet Packages: DevExpress.Win.PivotGrid, DevExpress.Win.TreeMap, DevExpress.Xpo
NuGet Package: DevExpress.Xpo
Declaration
Parameters
Name | Type | Description |
---|---|---|
property | ServerViewProperty | A ServerViewProperty object to add to the collection. |
Remarks
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]")});
See Also