Skip to main content

GridLookupExtension.BindToLINQ(Type, String, EventHandler<LinqServerModeDataSourceSelectEventArgs>) Method

Binds the GridLookup’s grid to a queryable source in database server mode.

Namespace: DevExpress.Web.Mvc

Assembly: DevExpress.Web.Mvc5.v24.1.dll

NuGet Package: DevExpress.Web.Mvc5

Declaration

public GridLookupExtension BindToLINQ(
    Type contextType,
    string tableName,
    EventHandler<LinqServerModeDataSourceSelectEventArgs> selectingMethod
)

Parameters

Name Type Description
contextType Type

A Type specifying the DataContext type.

tableName String

A String object specifying the table name.

selectingMethod EventHandler<LinqServerModeDataSourceSelectEventArgs>

A method to which selection logic is delegated.

Returns

Type Description
GridLookupExtension

A GridLookupExtension object representing the GridLookup extension.

See Also