Skip to main content

DevExpress v24.2 Update — Your Feedback Matters

Our What's New in v24.2 webpage includes product-specific surveys. Your response to our survey questions will help us measure product satisfaction for features released in this major update and help us refine our plans for our next major release.

Take the survey Not interested

DataGridBuilder<T> Class

A DataGrid control.

Namespace: DevExtreme.AspNet.Mvc.Builders

Assembly: DevExtreme.AspNet.Core.dll

#Declaration

C#
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