Back to Devexpress

VerticalGridExtension.GetViewModel(String) Method

aspnetmvc-devexpress-dot-web-dot-mvc-dot-verticalgridextension-dot-getviewmodel-x28-system-dot-string-x29.md

latest1.9 KB
Original Source

VerticalGridExtension.GetViewModel(String) Method

Returns the VerticalGrid’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.v25.2.dll

NuGet Package : DevExpress.Web.Mvc5

Declaration

csharp
public static VerticalGridModel GetViewModel(
    string name
)
vb
Public Shared Function GetViewModel(
    name As String
) As VerticalGridModel

Parameters

NameTypeDescription
nameString

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

|

Returns

TypeDescription
VerticalGridModel

A VerticalGridModel object representing the VerticalGrid model.

|

Remarks

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

See Also

Vertical Grid

VerticalGridExtension Class

VerticalGridExtension Members

DevExpress.Web.Mvc Namespace