ExtensionsFactory.GridView<RowType>(GridViewSettings<RowType>) Method

Creates a GridView.

Namespace: DevExpress.Web.Mvc.UI

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

Declaration

public GridViewExtension<RowType> GridView<RowType>(
    GridViewSettings<RowType> settings
)
    where RowType : class
Public Function GridView(Of RowType As Class)(
    settings As GridViewSettings(Of RowType)
) As GridViewExtension(Of RowType)

Parameters

Name Type Description
settings GridViewSettings<RowType>

A GridViewSettings<RowType> object containing the GridView extension settings.

Type Parameters

Name
RowType

Returns

Type Description
GridViewExtension<RowType>

A GridViewExtension<RowType> object implementing GridView functionality.

Remarks

To enable binding grid columns to Model fields using lambdas, it is required to declare the GridView extension using the GridView<RowType> strongly-typed declaration method.

NOTE

The partial View with the GridView extension does not need to be strongly-typed.

See Also