# Grouping

By default, the grouping functionality of the Telerik UI Grid for ASP.NET MVC is disabled.

For a runnable example, refer to the [demo on using aggregates in the Grid](https://demos.telerik.com/aspnet-mvc/grid/aggregates).

To control grouping in the Grid, use the [`Groupable()`](https://docs.telerik.com/aspnet-mvc/api/kendo.mvc.ui.fluent/gridbuilder#groupable) method.

```Razor HtmlHelper
    @(Html.Kendo().Grid<Kendo.Mvc.Examples.Models.CustomerViewModel>()
        .Name("grid")
        .Groupable()
    	...
    )
```

> Only columns that are [bound to a field](https://docs.telerik.com/kendo-ui/api/ui/grid/configuration/columns.field) can be groupable. To enable grouping on a column bound to an object, [bind the column to a field of that object](https://docs.telerik.com/aspnet-core/knowledge-base/grid-enable-operations-for-object-column).

You can also render groups by setting group expressions in the DataSource of the Grid even without enabling `Groupable`.

```Razor HtmlHelper
    @(Html.Kendo().Grid<Kendo.Mvc.Examples.Models.CustomerViewModel>()
        .Name("Grid")       
        .DataSource(dataSource => dataSource
            .Ajax()
            .Group(groups => groups.Add(p => p.UnitsInStock))
```

## See Also

* [Sticky Groups](https://www.telerik.com/aspnet-mvc/documentation/html-helpers/data-management/grid/grouping/sticky-groups)
* [Grouping with Aggregates by the Grid HtmlHelper for ASP.NET MVC (Demo)](https://demos.telerik.com/aspnet-mvc/grid/aggregates)
* [Server-Side API](https://www.telerik.com/aspnet-mvc/documentation/api/grid)
