Skip to main content
A newer version of this page is available. .

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.v19.2.dll

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