# .NET MAUI CollectionView Sticky Group Headers

The CollectionView for .NET MAUI provides the option to set its group headers as sticky in your desktop and mobile applications. This means the `GroupHeader` UI element "freezes" while scrolling through the items until the whole group is scrolled away. As you scroll through the next group, the currently stuck group header will be pushed by the next group header.

In a multi-level grouping scenario, the last inner group from the parent group will be sticky.

To enable the sticky group headers behavior, set `EnableStickyGroupHeaders` (`bool`) property of the CollectionView to `True`. By default, the `EnableStickyGroupHeaders` value is `False`.

```XAML
<telerik:RadCollectionView EnableStickyGroupHeaders="True"  />
```

```C#
var collectionView = new RadCollectionView();
collectionView.EnableStickyGroupHeaders = true;
```

Here is how the sticky group headers look in a single-level grouping scenario:

![Telerik UI for .NET MAUI CollectionView with a sticky country group header while scrolling through cities](https://www.telerik.com/maui-ui/documentation/assets/ea4b4204f786e757c4e5e0f2cf85f510/collectionview-sticky-group-header.gif)

Here is how the sticky group headers look in multi-level grouping scenario:

![Telerik UI for .NET MAUI CollectionView with sticky headers in a multi-level continent and country grouping](https://www.telerik.com/maui-ui/documentation/assets/e96253dfb84daa6981cf2908ffaf76fd/collectionview-sticky-group-multi-level.gif)

## See Also

* [Property Group Descriptor](https://www.telerik.com/maui-ui/documentation/controls/collectionview/grouping/property-group-descriptor)
* [Delegate Group Descriptor](https://www.telerik.com/maui-ui/documentation/controls/collectionview/grouping/delegate-group-descriptor)
* [Multi-level Grouping Descriptor](https://www.telerik.com/maui-ui/documentation/controls/collectionview/grouping/multilevel-grouping)
* [Group Header](https://www.telerik.com/maui-ui/documentation/controls/collectionview/grouping/header)
