Class ColumnGroupDescription
The ColumnGroupDescription class introduced to set the comparer value in the GrupColumnDesription. While we can add the comparer into the view through the ColumnGroupDescription. Describes the Grouping of Items using the ColumnName, Comparer and Converter as Criteria.
Inheritance
Namespace: Syncfusion.Data
Assembly: Syncfusion.Data.WPF.dll
Syntax
public class ColumnGroupDescription : PropertyGroupDescription
Constructors
ColumnGroupDescription(String, IValueConverter, IComparer<Object>)
Initializes a new instance of the ColumnGroupDescription class.
Declaration
public ColumnGroupDescription(string propertyName, IValueConverter converter, IComparer<object> comparer)
Parameters
Type | Name | Description |
---|---|---|
System.String | propertyName | The property name which is to be grouped. |
System.Windows.Data.IValueConverter | converter | The custom converter for applying custom grouping logic. |
System.Collections.Generic.IComparer<System.Object> | comparer | The comparer to sort the group key value. |
Properties
Comparer
Gets or sets the Comparer value to sort the GroupKey value.
Declaration
public IComparer<object> Comparer { get; set; }
Property Value
Type | Description |
---|---|
System.Collections.Generic.IComparer<System.Object> | The Comparer value to sort the GroupKey value. |
SortGroupRecords
Gets or sets the value that indicates whether to sort the inner records of group while using custom grouping.
Declaration
public bool SortGroupRecords { get; set; }
Property Value
Type | Description |
---|---|
System.Boolean | The default value is false. |
Remarks
By default, grouped columns records are not sorted as the values of all the records in one group will be same. So, only groups will be sorted based on group key. In custom grouping cases, grouped columns records value may differ. So in this case, you can sort the records of group by setting SortGroupRecords property to true.