dotnet/winforms

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

Open

#5202 aperta il 2 lug 2021

Vedi su GitHub
 (8 commenti) (1 reazione) (1 assegnatario)C# (922 fork)batch import
api-suggestionarea-controls-DataGridViewhelp wanted

Metriche repository

Star
 (4100 star)
Metriche merge PR
 (Merge medio 14g 22h) (56 PR mergiate in 30 g)

Descrizione

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.

Guida contributor