# Locked Group Headers

The Kendo UI for Vue Data Grid can lock group headers while keeping selected columns locked.

To lock Grid group headers, set the [`lockGroups`](https://www.telerik.com/kendo-vue-ui/components/grid/api/gridprops#lockgroups) prop to `true`. Set the [`locked`](https://www.telerik.com/kendo-vue-ui/components/grid/api/gridcolumnprops#locked) prop on the columns that must remain visible while the Grid scrolls horizontally.

```vue
<Grid :lock-groups="true" :columns="[{ field: 'ProductName', locked: true }]" />
```

The following example shows how to lock the group headers and the first two columns of a Grid component.

[Demo Source](https://demos.telerik.com/kendo-vue-ui/grid/locked-group-headers/source.txt)

## Suggested Links

* [Grouping Basics](https://www.telerik.com/kendo-vue-ui/components/grid/grouping)
* [Grid API Reference](https://www.telerik.com/kendo-vue-ui/components/grid/api/gridprops)
