ItemCollection.GroupDescriptions Property


Gets a collection of GroupDescription objects that defines how to group the items.

 virtual property System::Collections::ObjectModel::ObservableCollection<System::ComponentModel::GroupDescription ^> ^ GroupDescriptions { System::Collections::ObjectModel::ObservableCollection<System::ComponentModel::GroupDescription ^> ^ get(); };
public override System.Collections.ObjectModel.ObservableCollection<System.ComponentModel.GroupDescription> GroupDescriptions { get; }
member this.GroupDescriptions : System.Collections.ObjectModel.ObservableCollection<System.ComponentModel.GroupDescription>
Public Overrides ReadOnly Property GroupDescriptions As ObservableCollection(Of GroupDescription)

Property Value

An ObservableCollection<T> of GroupDescription objects. The collection is indexed by the group levels.


For a related example, see PropertyGroupDescription.


Use the CanGroup property to test whether the current implementation supports grouping before adding GroupDescription objects.


This property can be set only by accessing the collection object and using its various methods, such as Add. The property to access the collection object is read-only, while the collection itself is read-write.

Applies to

See also