Skip to main content

WidgetFactory<TModel>.DataGrid() Method

Creates a DataGrid control.

Namespace: DevExtreme.AspNet.Mvc.Factories

Assembly: DevExtreme.AspNet.Core.dll

Declaration

public DataGridBuilder<object> DataGrid()

Returns

Type Description
DataGridBuilder<Object>

An instance of DataGridBuilder<T>

Remarks

This method creates a DataGridBuilder<T> class instance whose members can be used to specify DataGrid options.

@(Html.DevExtreme().DataGrid() // create a DataGrid
    // call methods to specify control options
)
See Also