The requested page is not available for the requested platform. You are viewing the content for .NET Framework 4.5.2+ platform.
.NET Framework 4.5.2+
.NET Framework 4.5.2+
.NET Standard 2.0+
The page you are viewing does not exist in the .NET Standard 2.0+ platform documentation. This link will take you to the parent topic of the current section.

XpoDataSource.ServerMode Property

Gets or sets whether server mode is enabled for the data-aware control bound to the current data source control.

Namespace: DevExpress.Xpo

Assembly: DevExpress.Xpo.v19.1.dll

Declaration

[DefaultValue(false)]
public bool ServerMode { get; set; }
<DefaultValue(False)>
Public Property ServerMode As Boolean

Property Value

Type Default Description
Boolean

false

true to enable server mode; otherwise, false.

Remarks

If this property is set to true, an XPServerCollectionSource object is automatically created to enable server mode for the bound data-aware control. The XPServerCollectionSource object is initialized with the XpoDataSource's settings required to retrieve persistent objects. The settings include the session providing access to persistent objects, their type, and filter criteria. To customize these settings use the XpoDataSource.Session, XpoDataSource.TypeName, and XpoDataSource.Criteria properties.

Note

If the bound data-aware control doesn't support server mode, enabling this mode via the ServerMode property throws the NotSupportedException. To learn about the ASP.NET controls that support server mode, refer to the XPServerCollectionSource class description.

See Also