menu

WinUI

  • Code Examples
  • Upgrade Guide
  • User Guide
  • Demos
  • Support
  • Forums
  • Download
Class ColumnGroupDescription - WinUI API Reference | Syncfusion

    Show / Hide Table of Contents

    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
    System.Object
    ColumnGroupDescription
    Implements
    System.ComponentModel.INotifyPropertyChanged
    Namespace: Syncfusion.UI.Xaml.Data
    Assembly: Syncfusion.Data.WinUI.dll
    Syntax
    public class ColumnGroupDescription : Object, INotifyPropertyChanged

    Constructors

    ColumnGroupDescription(String, Func<String, Object, Object>, IComparer<Object>)

    Initializes a new instance of the ColumnGroupDescription class.

    Declaration
    public ColumnGroupDescription(string propertyName, Func<string, object, object> keySelector, IComparer<object> comparer)
    Parameters
    Type Name Description
    System.String propertyName

    The property name which is to be grouped.

    System.Func<System.String, System.Object, System.Object> keySelector

    The keySelector for custom grouping.

    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.

    KeySelector

    Get or set the KeySeletor for custom grouping.

    Declaration
    public Func<string, object, object> KeySelector { get; set; }
    Property Value
    Type Description
    System.Func<System.String, System.Object, System.Object>

    The KeySeletor for custom grouping.

    PropertyName

    Gets or sets the property of the underlying collection view based on which grouping is to be performed.

    Declaration
    public string PropertyName { get; set; }
    Property Value
    Type Description
    System.String

    The property of the underlying collection view based on which grouping is to be performed.

    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.

    Events

    PropertyChanged

    Occurs when the property is changed.

    Declaration
    public event PropertyChangedEventHandler PropertyChanged
    Event Type
    Type
    System.ComponentModel.PropertyChangedEventHandler

    Implements

    System.ComponentModel.INotifyPropertyChanged
    Back to top Generated by DocFX
    Copyright © 2001 - 2025 Syncfusion Inc. All Rights Reserved