New to Telerik UI for WinFormsStart a free 30-day trial

Provides a base class for group descriptions in pivot operations. This abstract class defines the foundation for grouping data items with support for sorting, comparison logic, and grand total functionality. Derived classes implement specific grouping strategies for different data types and scenarios.

Definition

Properties

Gets or sets the GroupComparer used to compare and sort groups within this group description. This comparer determines the ordering of groups and can implement custom comparison logic for specific data types.

C#
[DataMember]
public GroupComparer GroupComparer { get; set; }

Implements: IGroupDescription.GroupComparer

Gets or sets the sort order for groups created by this group description. Determines whether groups should be sorted in ascending, descending, or default order during pivot operations.

C#
[DataMember]
public SortOrder SortOrder { get; set; }

Implements: IGroupDescription.SortOrder

Methods

Creates a deep copy of this group description by copying core properties including sort order and group comparer. This method ensures that cloned instances maintain their grouping and sorting configuration independently.

C#
protected override void CloneCore(Cloneable source)
Parameters:sourceCloneable

The source group description to clone from.

Overrides: DescriptionBase.CloneCore(Cloneable)

Remarks:

Notes to Inheritors If you derive from Cloneable, you may need to override this method to copy all properties. It is essential that all implementations call the base implementation of this method (if you don't call base you should manually copy all needed properties including base properties).