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.v24.1.dll
NuGet Package: DevExpress.Data
Declaration
[ToolboxBitmap(typeof(ResFinder), "Bitmaps256.PLinqServerModeSource.bmp")]
[ToolboxTabName("DX.24.1: Data & Analytics")]
public class PLinqServerModeSource :
Component,
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.
public Form1() { InitializeComponent(); plinqServerModeSource1.Source = myCustomerCollection; }
- Bind the control to the PLinqServerModeSource component.
Note
The LinqServerModeSource is a read-only data source.