menu

WinForms

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

    Show / Hide Table of Contents

    Class CompareColumns

    Implements utilities for comparing two records or columns.

    Inheritance
    System.Object
    CompareColumns
    Inherited Members
    System.Object.Equals(System.Object)
    System.Object.Equals(System.Object, System.Object)
    System.Object.GetHashCode()
    System.Object.GetType()
    System.Object.MemberwiseClone()
    System.Object.ReferenceEquals(System.Object, System.Object)
    System.Object.ToString()
    Namespace: Syncfusion.Grouping
    Assembly: Syncfusion.Grouping.Base.dll
    Syntax
    public class CompareColumns

    Constructors

    CompareColumns()

    Declaration
    public CompareColumns()

    Methods

    CompareNullableObjects(SortColumnDescriptor, Object, Object)

    Compares two nullbale objects.

    Declaration
    public static int CompareNullableObjects(SortColumnDescriptor columnDescriptor, object x, object y)
    Parameters
    Type Name Description
    SortColumnDescriptor columnDescriptor

    Sort column descriptor.

    System.Object x

    First object to compare.

    System.Object y

    Second object to compare.

    Returns
    Type Description
    System.Int32

    Value Condition Less than zero x is less than y. Zero x equals y. Greater than zero x is greater than y.

    CompareNullableObjects(Object, Object)

    Compare two nullable objects.

    Declaration
    public static int CompareNullableObjects(object x, object y)
    Parameters
    Type Name Description
    System.Object x

    First object to compare.

    System.Object y

    Second object to compare.

    Returns
    Type Description
    System.Int32

    Value Condition Less than zero x is less than y. Zero x equals y. Greater than zero x is greater than y.

    ComparePrimaryKeys(Boolean, SortColumnDescriptor[], Object, Object)

    Compares the primary keys for the two records specified with x and y.

    Declaration
    public static int ComparePrimaryKeys(bool isSorted, SortColumnDescriptor[] arrayOfColumnDescriptors, object x, object y)
    Parameters
    Type Name Description
    System.Boolean isSorted

    Specifies whether the values are sorted.

    SortColumnDescriptor[] arrayOfColumnDescriptors

    Array of sort column descriptors.

    System.Object x

    First record to compare.

    System.Object y

    Second record to compare.

    Returns
    Type Description
    System.Int32

    Value Condition Less than zero x is less than y. Zero x equals y. Greater than zero x is greater than y.

    CompareSortKeys(Boolean, SortColumnDescriptor[], Object, Object)

    Compares the sort keys for the two records specified with x and y.

    Declaration
    public static int CompareSortKeys(bool isSorted, SortColumnDescriptor[] arrayOfColumnDescriptors, object x, object y)
    Parameters
    Type Name Description
    System.Boolean isSorted

    Specifies whether the values are sorted.

    SortColumnDescriptor[] arrayOfColumnDescriptors

    Array of sort column descriptors.

    System.Object x

    First record to compare.

    System.Object y

    Second record to compare.

    Returns
    Type Description
    System.Int32

    Value Condition Less than zero x is less than y. Zero x equals y. Greater than zero x is greater than y.

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