dotnet/winforms

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

开放

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

 (8 条评论) (1 个反应) (1 位负责人)C# (922 个派生)batch import
api-suggestionarea-controls-DataGridViewhelp wanted

仓库指标

星标
 (4,100 个星标)
PR 合并指标
 (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.

贡献者指南