Skip to main content
A newer version of this page is available. .

LinqServerModeDataSource Class

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

Namespace: DevExpress.Data.Linq

Assembly: DevExpress.Web.v19.1.dll

Declaration

public class LinqServerModeDataSource :
    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