Skip to main content
A newer version of this page is available. .
.NET Framework 4.5.2+

XPServerModeView Class

A data source that binds DevExpress grid controls with data tables and allows retrieving data from the server side.

Namespace: DevExpress.Xpo

Assembly: DevExpress.Xpo.v21.1.dll

Declaration

public class XPServerModeView :
    Component,
    ISupportInitializeNotification,
    ISupportInitialize,
    IListSource,
    IXPClassInfoAndSessionProvider,
    IXPClassInfoProvider,
    IXPDictionaryProvider,
    ISessionProvider,
    IObjectLayerProvider,
    IDataLayerProvider,
    IColumnsServerActions,
    IDXCloneable

Remarks

Use the XPServerModeView component to work with DevExpress grid controls in server mode. The component combines the advantages and features of XPServerCollectionSource and XPView.

The XPServerModeView is a read-only data source. To enable data editing in server mode, use the XPServerCollectionSource with the XPServerCollectionSource.AllowEdit property set to true.

XPServerModeView ships with the following capabilities:

  • Ability to handle large data sources with lower memory usage (does not load an entire persistent object instance).
  • Ability to customize SELECT statements to exclude unused data columns.
  • Ability to include reference property data (nested properties) in the root query to avoid the 1+N problem.
  • Ability to include custom (virtual) properties calculated on the server side (similar to ServerViewProperty).

The following examples demonstrate how to work with XPServerModeView:

The following code snippet (auto-collected from DevExpress Examples) contains a reference to the XPServerModeView 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.

Implements

Inheritance

See Also