dotnet/winforms

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

Open

#5,202 创建于 2021年7月2日

在 GitHub 查看
 (8 评论) (1 反应) (1 负责人)C# (922 fork)batch import
api-suggestionarea-controls-DataGridViewhelp wanted

仓库指标

Star
 (4,100 star)
PR 合并指标
 (平均合并 14天 22小时) (30 天内合并 56 个 PR)

描述

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.

贡献者指南