C# ListView Sorter


Author: Dave
Date: 04.13.12 - 9:15am



Here is a demo of a very easy to use list view sorter class for C# that only takes 3 lines to implement.
 ListViewSorter.ListViewColumnSorter lvs = null;

 public Form1()
 {
 InitializeComponent();
 lvs = new ListViewSorter.ListViewColumnSorter();
 lvs.Initilize(lv, "text,hex,num", null);
It supports 4 types of column sorting, text, hex number,none and integer. You can specify how to sort each column in the initilize function call.

The first few examples i turned up were just to confusing and to much work for something you are goign to have to implement over and over again. This cuts it down to the bare bones I think.

free for any use, enjoy.




Comments: (0)

 
Leave Comment:
Name:
Email: (not shown)
Message: (Required)
Math Question: 51 + 45 = ? followed by the letter: C 



About Me
More Blogs
Main Site
Posts: (All)
2024 ( 1 )
2023 ( 9 )
2022 ( 4 )
2021 ( 2 )
2020 ( 4 )
2019 ( 5 )
2018 ( 6 )
2017 ( 6 )
2016 ( 22 )
2015 ( 15 )
2014 ( 25 )
2013 ( 4 )
2012 (10)
     VC 2008 Bit Fields
     Speed trap
     C# Db Class Generator
     VB6 vrs .NET (again)
     FireFox Whois Extension
     git and vb6
     Code Additions
     Compiled date to string
     C# ListView Sorter
     VB6 Wish List
2011 (7)
     C# Process Injection
     CAPTCHA Bots
     C# PE Offset Calculator
     VB6 Async Download
     Show Desktop
     coding philosophy
     Code release
2010 ( 11 )
2009 ( 3 )