LinqServerModeDataSource Class
A data source that can be associated with any queryable source.
Namespace: DevExpress.Data.Linq
Assembly: DevExpress.Web.v21.1.dll
NuGet Package: DevExpress.Web
Declaration
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:
The LinqServerModeDataSource.ContextTypeName property - Specifies the type of objects retrieved from a data source.
The LinqServerModeDataSource.TableName property - Specifies the table name.
bind the ASPxGridView to the LinqServerModeDataSource component.
Example
<dx:ASPxGridView ID="ASPxGridView1" DataSourceID="LinqServerModeDataSource1" >
...
</dx:ASPxGridView>
<dx:LinqServerModeDataSource ID="LinqServerModeDataSource1" runat="server"
ContextTypeName="NorthwindNestedFields.DataClasses1DataContext" TableName="Orders" />
Online Examples
ASPxGridLookup:
ASPxGridView:
How to get joined tables from the LinqServerModeDataSource using a custom LINQ query
How to implement editable master-detail ASPxGridView bound to a LinqServerModeDataSource
How to lookup a parent table’s values in grid cells in Server mode