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.

貢獻者指南