Skip to main content

DataGridBuilder<T> Class

A DataGrid control.

Namespace: DevExtreme.AspNet.Mvc.Builders

Assembly: DevExtreme.AspNet.Core.dll

Declaration

public class DataGridBuilder<T> :
    WidgetBuilder

Type Parameters

Name Description
T

The data type.

The following members return DataGridBuilder objects:

Show 221 links

Remarks

Call the DataGrid helper method to create a new DataGrid control. The method creates a DataGridBuilder<T> class instance whose members allow you to specify control options.

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

To create a strongly-typed DataGrid, specify a data model in the DataGrid<T> method as a type parameter.

@(Html.DevExtreme().DataGrid<SampleModel>() // create a strongly-typed DataGrid
    // call methods to specify control options
)

Inheritance

See Also