dotnet/winforms

Enhance DataGridView to support non-destructive (multi column) Sort

Open

#5,202 opened on 2021年7月2日

GitHub で見る
 (8 comments) (1 reaction) (1 assignee)C# (922 forks)batch import
api-suggestionarea-controls-DataGridViewhelp wanted

Repository metrics

Stars
 (4,100 stars)
PR merge metrics
 (平均マージ 14d 22h) (30d で 56 merged PRs)

説明

DataGridView.Sort seems to be implemented via the quick sort algo in DataGridViewRowCollection.RowArrayList.

I would like to be able to sort the DataGridView in a non-destructive (stable) way when changing the sort column (clicking the header to sort). Eg. If I sort on the first column and then sort on the second, the rows remain sorted by column 1 for equal values of column 2.

コントリビューターガイド