Xceed DataGrid for WPF v7.3 Documentation
Xceed.Wpf.DataGrid Assembly / Xceed.Wpf.DataGrid Namespace / DataGridItemPropertyBase Class / DistinctValuesSortComparer Property


In This Topic
    DistinctValuesSortComparer Property
    In This Topic
    Gets or sets the IComparer that is used to sort the item property's distinct values.
    Syntax
    'Declaration
     
    Public Property DistinctValuesSortComparer As IComparer
    'Usage
     
    Dim instance As DataGridItemPropertyBase
    Dim value As IComparer
     
    instance.DistinctValuesSortComparer = value
     
    value = instance.DistinctValuesSortComparer
    public IComparer DistinctValuesSortComparer {get; set;}

    Property Value

    The IComparer that is used to sort the item property's distinct values.
    Remarks
    If a null reference (Nothing in Visual Basic) the custom sort comparer specified by the SortComparer will be used. If none is provided, the distinct values will be sorted according to their hash code.
    Requirements

    Target Platforms: Windows 11, Windows, 10, Windows 7, Windows Vista SP1 or later, Windows XP SP3, Windows Server 2008 (Server Core not supported), Windows Server 2008 R2 (Server Core supported with SP1 or later), Windows Server 2003 SP2

    See Also