When grouping is applied in list view, it automatically sorts the data and splits it into groups.
The IDataCollectionEx interface supports grouping for data controls including list view. It implements the GroupAsync method to call the grouping operation in the collection view without having to cast to the specific interface. The GroupAsync method groups the collection view according to the specified group fields, group path, or group descriptions.
The following code snippet depicts grouping in the ListView control: