The requested page is not available for the requested platform. You are viewing the content for Default platform.

GridViewExtension.GetViewModel(String) Method

Returns the GridView's view model object that maintains the grid state and provides the means to populate itself with data when the grid is used in custom data binding mode.

Namespace: DevExpress.Web.Mvc

Assembly: DevExpress.Web.Mvc5.v19.2.dll

Declaration

public static GridViewModel GetViewModel(
    string name
)
Public Shared Function GetViewModel(
    name As String
) As GridViewModel

Parameters

Name Type Description
name String

A string value that is the unique identifier name (SettingsBase.Name) for the GridView.

Returns

Type Description
GridViewModel

A GridViewModel object representing the grid view model.

Remarks

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

See Also