Skip to main content
.NET Framework 4.6.2+
  • The page you are viewing does not exist in the .NET 8.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.v24.2.dll

Declaration

[DefaultValue(false)]
public bool ServerMode { get; set; }

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