Back to Devexpress

PLinqServerModeSource Class

corelibraries-devexpress-dot-data-dot-plinq.md

latest3.0 KB
Original Source

PLinqServerModeSource Class

The data source for the GridControl, GridLookUpEdit and SearchLookUpEdit controls that binds these controls to any enumerable source in Server Mode.

Namespace : DevExpress.Data.PLinq

Assembly : DevExpress.Data.v25.2.dll

NuGet Package : DevExpress.Data

Declaration

csharp
[ToolboxBitmap(typeof(ResFinder), "Bitmaps256.PLinqServerModeSource.bmp")]
public class PLinqServerModeSource :
    Component,
    IListSource,
    ISupportInitialize,
    IPLinqServerModeFrontEndOwner,
    IDXCloneable,
    IXtraSourceError
vb
<ToolboxBitmap(GetType(ResFinder), "Bitmaps256.PLinqServerModeSource.bmp")>
Public Class PLinqServerModeSource
    Inherits Component
    Implements IListSource,
               ISupportInitialize,
               IPLinqServerModeFrontEndOwner,
               IDXCloneable,
               IXtraSourceError

Remarks

Server mode allows a data-aware control to rapidly work with large datasets. Loading records in small portions on demand and performing data-aware operations on the data server side are the key features of server mode. When the control needs to display a specific portion of data, it calls a specific method of the bound server mode data source. This method sends a corresponding request to the data store, and upon receiving the results, passes them back to the control. The PLinqServerModeSource component implements the IListSource interface, and can be used as a data source for a control supporting the server mode feature.

Use PLinqServerModeSource to bind a server-mode enabled control to an enumerable collection via Parallel LINQ to Objects. For this purpose, perform the following steps.

  • Specify the required collection via the PLinqServerModeSource.Source property. This property should be set in code.

  • Bind the control to the PLinqServerModeSource component.

Note

The LinqServerModeSource is a read-only data source.

Inheritance

Object MarshalByRefObject Component PLinqServerModeSource

See Also

PLinqServerModeSource Members

DevExpress.Data.PLinq Namespace