LinqServerModeDataSource Class

A data source that can be associated with any queryable source.

Namespace: DevExpress.Data.Linq

Assembly: DevExpress.Web.v20.1.dll

Declaration

public class LinqServerModeDataSource :
    DataSourceControl
Public Class LinqServerModeDataSource
    Inherits DataSourceControl

Remarks

The LinqServerModeDataSource component allows you to bind the ASPxGridView, ASPxCardView, ASPxVerticalGrid, ASPxGridLookup, ASPxComboBox and ASPxPivotGrid controls to a data source via LinqToSQL, and enable the database server mode. To do this, follow the steps below:

Example

<dx:ASPxGridView ID="ASPxGridView1" DataSourceID="LinqServerModeDataSource1" >
    ...
</dx:ASPxGridView>

<dx:LinqServerModeDataSource ID="LinqServerModeDataSource1" runat="server" 
    ContextTypeName="NorthwindNestedFields.DataClasses1DataContext" TableName="Orders" />

Online Examples

ASPxGridLookup:

ASPxGridView:

Inheritance

Object
Control
DataSourceControl
LinqServerModeDataSource
See Also