WinUI

Code Examples Upgrade Guide User Guide Demos Support Forums Download
  • Code Examples
  • Upgrade Guide
  • User Guide
  • Demos
  • Support
  • Forums
  • Download
Class GroupColumnDescription

    Show / Hide Table of Contents

    Class GroupColumnDescription

    Describes a grouping criterion.

    Inheritance
    System.Object
    GroupColumnDescription
    Namespace: Syncfusion.UI.Xaml.DataGrid
    Assembly: Syncfusion.Grid.WinUI.dll
    Syntax
    public class GroupColumnDescription : DependencyObject

    Constructors

    GroupColumnDescription()

    Declaration
    public GroupColumnDescription()

    Fields

    ColumnNameProperty

    Identifies the ColumnName dependency property.

    Declaration
    public static readonly DependencyProperty ColumnNameProperty
    Field Value
    Type Description
    Microsoft.UI.Xaml.DependencyProperty
    Remarks

    The identifier for the ColumnName dependency property.

    ComparerProperty

    Identifies the Comparer dependency property.

    Declaration
    public static readonly DependencyProperty ComparerProperty
    Field Value
    Type Description
    Microsoft.UI.Xaml.DependencyProperty
    Remarks

    The identifier for the Comparer dependency property.

    KeySelectorProperty

    Identifies the KeySelector dependency property.

    Declaration
    public static readonly DependencyProperty KeySelectorProperty
    Field Value
    Type Description
    Microsoft.UI.Xaml.DependencyProperty
    Remarks

    The identifier for the KeySelector dependency property.

    SortGroupRecordsProperty

    Identifies the SortGroupRecords dependency property.

    Declaration
    public static readonly DependencyProperty SortGroupRecordsProperty
    Field Value
    Type Description
    Microsoft.UI.Xaml.DependencyProperty
    Remarks

    The identifier for the SortGroupRecords dependency property.

    Properties

    ColumnName

    Gets or sets the name of the column.

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

    A string that specifies the name of the column. The default value is null.

    Comparer

    Gets or sets the comparer for the apply grouping based on custom logic.

    Declaration
    public IComparer<object> Comparer { get; set; }
    Property Value
    Type Description
    System.Collections.Generic.IComparer<System.Object>

    The comparer for apply grouping based on custom logic. The default value is null.

    KeySelector

    Gets or sets the KeySelector 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 KeySelector for custom grouping. The default value is null.

    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.

    Back to top Generated by DocFX
    Copyright © 2001 - 2023 Syncfusion Inc. All Rights Reserved