Tag Archives: sort ListView

Sort ListView controls by all columns or clicked columns in C#

The ListView control provides features to sort its values but by default it doesn’t use them. This example shows how you can add extension methods to the control to make it sort on all columns or on clicked columns. This … Continue reading

Posted in controls, extension methods | Tagged , , , , , , , , , , , , | 1 Comment

Sort a ListView using the column you click in C#

You can sort a ListView using the column you click, but it’s a lot more work than simply sorting the ListView‘s items. To sort using the items, you can simply set the control’s Sorting property to Ascending or Descending. Unfortunately, … Continue reading

Posted in controls, user interface | Tagged , , , , , , , , , , , | 9 Comments

Sort a ListView control using all of its columns in C#

You can make the ListView sort by setting its Sorting property to Ascending or Descending, but it takes some extra work to sort a ListView control using all of its columns. Normally the control only sorts on its items, not … Continue reading

Posted in controls, user interface | Tagged , , , , , , , , , , , | Leave a comment