GridLookupExtension.BindToEF(String, String, EventHandler<LinqServerModeDataSourceSelectEventArgs>, EventHandler<ServerModeExceptionThrownEventArgs>) Method
In This Article
Binds the GridLookup’s grid to a data source via the Entity Framework in database server mode.
Namespace: DevExpress.Web.Mvc
Assembly: DevExpress.Web.Mvc5.v24.2.dll
NuGet Package: DevExpress.Web.Mvc5
#Declaration
public GridLookupExtension BindToEF(
string contextTypeName,
string tableName,
EventHandler<LinqServerModeDataSourceSelectEventArgs> selectingMethod,
EventHandler<ServerModeExceptionThrownEventArgs> exceptionThrownMethod
)
#Parameters
Name | Type | Description |
---|---|---|
context |
String | A String object representing the Data |
table |
String | A String object specifying the table name. |
selecting |
Event |
A method to which selection logic is delegated. |
exception |
Event |
A delegate method that allows you to catch unhandled/CLR exceptions. |
#Returns
Type | Description |
---|---|
Grid |
A Grid |
See Also