Skip to main content

GridLookupExtension.BindToCustomData(GridLookupViewModel) Method

Binds the GridLookup’s built-in GridView to a custom data model when you use the built-in grid in the custom data binding mode.

Namespace: DevExpress.Web.Mvc

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

NuGet Package: DevExpress.Web.Mvc5

Declaration

public GridLookupExtension BindToCustomData(
    GridLookupViewModel viewModel
)

Parameters

Name Type Description
viewModel GridLookupViewModel

A GridViewModel object representing the grid view model to which to bind.

Returns

Type Description
GridLookupExtension

A GridLookupExtension object representing the GridView extension.

Remarks

The BindToCustomData property is not in effect in Single selection mode.

Refer to the Custom Data Binding - Overview topic to learn more.

See Also