Click here to Skip to main content
12,752,448 members (37,735 online)
Click here to Skip to main content

Stats

51.4K views
988 downloads
52 bookmarked
Posted 12 Oct 2006

An extendable ListViewSorter

, 12 Oct 2006 CPOL
This article describes how to sort a ListView ascending/descending with two lines of code, and how to extend its sorting capabilities.

Microsoft Visual Studio Solution File, Format Version 9.00
# Visual Studio 2005
Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "Comparer", "Comparer\Comparer.csproj", "{02F5B418-882A-437D-A192-D0C800A7D937}"
EndProject
Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "ListViewSorter", "ListViewSorter\ListViewSorter.csproj", "{D0C04815-9F94-42B8-9892-8A111F301F53}"
EndProject
Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "Demo", "Demo\Demo.csproj", "{6FC8CC62-AB2A-4938-A72E-42A05B18E749}"
EndProject
Global
	GlobalSection(SolutionConfigurationPlatforms) = preSolution
		Debug|Any CPU = Debug|Any CPU
		Release|Any CPU = Release|Any CPU
	EndGlobalSection
	GlobalSection(ProjectConfigurationPlatforms) = postSolution
		{02F5B418-882A-437D-A192-D0C800A7D937}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
		{02F5B418-882A-437D-A192-D0C800A7D937}.Debug|Any CPU.Build.0 = Debug|Any CPU
		{02F5B418-882A-437D-A192-D0C800A7D937}.Release|Any CPU.ActiveCfg = Release|Any CPU
		{02F5B418-882A-437D-A192-D0C800A7D937}.Release|Any CPU.Build.0 = Release|Any CPU
		{D0C04815-9F94-42B8-9892-8A111F301F53}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
		{D0C04815-9F94-42B8-9892-8A111F301F53}.Debug|Any CPU.Build.0 = Debug|Any CPU
		{D0C04815-9F94-42B8-9892-8A111F301F53}.Release|Any CPU.ActiveCfg = Release|Any CPU
		{D0C04815-9F94-42B8-9892-8A111F301F53}.Release|Any CPU.Build.0 = Release|Any CPU
		{6FC8CC62-AB2A-4938-A72E-42A05B18E749}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
		{6FC8CC62-AB2A-4938-A72E-42A05B18E749}.Debug|Any CPU.Build.0 = Debug|Any CPU
		{6FC8CC62-AB2A-4938-A72E-42A05B18E749}.Release|Any CPU.ActiveCfg = Release|Any CPU
		{6FC8CC62-AB2A-4938-A72E-42A05B18E749}.Release|Any CPU.Build.0 = Release|Any CPU
	EndGlobalSection
	GlobalSection(SolutionProperties) = preSolution
		HideSolutionNode = FALSE
	EndGlobalSection
EndGlobal

By viewing downloads associated with this article you agree to the Terms of Service and the article's licence.

If a file you wish to view isn't highlighted, and is a text file (not binary), please let us know and we'll add colourisation support for it.

License

This article, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)

Share

About the Author

Marcus Deecke
Software Developer (Senior)
Germany Germany
I am working for a small software company in Hamburg, Germany, and my day-to-day distress is Java development.

You may also be interested in...

Permalink | Advertise | Privacy | Terms of Use | Mobile
Web02 | 2.8.170217.1 | Last Updated 12 Oct 2006
Article Copyright 2006 by Marcus Deecke
Everything else Copyright © CodeProject, 1999-2017
Layout: fixed | fluid