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

GroupDescription Class

Describes how to arrange data items into groups.

Namespace: DevExpress.Maui.CollectionView

Assembly: DevExpress.Maui.CollectionView.dll

NuGet Package: DevExpress.Maui.CollectionView

#Declaration

C#
public class GroupDescription :
    SortDescriptionBase

The following members return GroupDescription objects:

#Remarks

The DXCollectionView allows you to combine items into groups. To expand or collapse a group, a user should tap the group header.

To group Collection View items, initialize the GroupDescription property with a GroupDescription object. Specify its options:

FieldName
Specifies the name of the field whose values are used to group collection view items.
GroupInterval
Specifies how to group items, for example, alphabetically or by a date range.
SortOrder (Optional)
Specifies whether items are sorted in ascending or descending order.
DisplayFormat (Optional)
Specifies the format for group captions.

The following markup displays a list of contacts alphabetically:

DevExpress MAUI Collection View - Grouped items

<dxcv:DXCollectionView x:Name="collectionView" ItemsSource="{Binding Data}">
    <dxcv:DXCollectionView.GroupDescription>
        <dxcv:GroupDescription FieldName="Name" GroupInterval="Alphabetical"/>
    </dxcv:DXCollectionView.GroupDescription>
    <!--...-->
</dxcv:DXCollectionView>

#Inheritance

System.Object
BindableObject
Element
DevExpress.Maui.Core.Internal.DXElementBaseCore
SortDescriptionBase
GroupDescription
See Also