ExtensionsFactory.GridView<RowType>(GridViewSettings<RowType>) Method
Creates a GridView.
Namespace: DevExpress.Web.Mvc.UI
Assembly: DevExpress.Web.Mvc5.v24.1.dll
NuGet Package: DevExpress.Web.Mvc5
Declaration
public GridViewExtension<RowType> GridView<RowType>(
GridViewSettings<RowType> settings
)
where RowType : class
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