Skip to main content

GridLookupExtension.GetViewModel(String) Method

Returns the GridLookup’s built-in GridView view model object that maintains the built-in 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.v24.1.dll

NuGet Package: DevExpress.Web.Mvc5

Declaration

public static GridLookupViewModel GetViewModel(
    string name
)

Parameters

Name Type Description
name String

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

Returns

Type Description
GridLookupViewModel

A GridLookupViewModel object representing the grid view model.

Remarks

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

See Also