corelibraries-devexpress-dot-data-dot-linq-cb842e03.md
The data source for the GridControl and PivotGridControl that binds these controls to any queryable source (e.g., ‘LINQ to SQL Classes’ or XPQuery<T>) in server mode.
Namespace : DevExpress.Data.Linq
Assembly : DevExpress.Data.v25.2.dll
NuGet Package : DevExpress.Data
[ToolboxBitmap(typeof(ResFinder), "Bitmaps256.LinqServerModeSource.bmp")]
public class LinqServerModeSource :
Component,
IListSource,
ISupportInitialize,
ILinqServerModeFrontEndOwner,
IDXCloneable,
IXtraSourceError
<ToolboxBitmap(GetType(ResFinder), "Bitmaps256.LinqServerModeSource.bmp")>
Public Class LinqServerModeSource
Inherits Component
Implements IListSource,
ISupportInitialize,
ILinqServerModeFrontEndOwner,
IDXCloneable,
IXtraSourceError
The LinqServerModeSource component allows you to bind the GridControl or PivotGridControl to an IQueryable query provider, and enable server mode. To do this, follow the steps listed below:
specify the key field name for objects retrieved from a data source using the LinqServerModeSource.KeyExpression property:
specify the queryable source via the LinqServerModeSource.QueryableSource property. This property should be set in code:
bind the control to the LinqServerModeSource component.
Note
The LinqServerModeSource is a read-only data source.
Object MarshalByRefObject Component LinqServerModeSource
See Also