Skip to main content

GridViewExtension.BindToCustomData(GridViewModel) Method

Binds the GridView to a custom data model when you use the 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 GridViewExtension BindToCustomData(
    GridViewModel viewModel
)

Parameters

Name Type Description
viewModel GridViewModel

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

Returns

Type Description
GridViewExtension

A GridViewExtension object representing the GridView extension.

Remarks

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

See Also