WinForms

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

    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
    GroupDescription
    PropertyGroupDescription
    ColumnGroupDescription
    Implements
    System.ComponentModel.INotifyPropertyChanged
    Inherited Members
    PropertyGroupDescription.PropertyName
    PropertyGroupDescription.StringComparison
    GroupDescription.OnPropertyChanged(PropertyChangedEventArgs)
    GroupDescription.ShouldSerializeGroupNames()
    GroupDescription.GroupNames
    GroupDescription.PropertyChanged
    System.Object.ToString()
    System.Object.Equals(System.Object)
    System.Object.Equals(System.Object, System.Object)
    System.Object.ReferenceEquals(System.Object, System.Object)
    System.Object.GetHashCode()
    System.Object.GetType()
    System.Object.MemberwiseClone()
    Namespace: Syncfusion.Data
    Assembly: Syncfusion.Data.WinForms.dll
    Syntax
    public class ColumnGroupDescription : PropertyGroupDescription, INotifyPropertyChanged

    Constructors

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

    Initializes a new instance of the ColumnGroupDescription class.

    Declaration
    public ColumnGroupDescription(string propertyName, Func<string, object, object> keySelector)
    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.

    Properties

    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.

    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.

    Implements

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