Skip to content

GridViewExtensions.SortBy<TItem,TKey> method

Enables sorting by a key selected from each row item.

public static GridViewColumn<TItem> SortBy<TItem, TKey>(this GridViewColumn<TItem> column,
Func<TItem, TKey> keySelector, IComparer<TKey>? comparer = null)