Is there a way to sort Listview columns numericly?
-
I am aware how to do it alphabetically (ascending/descending) but I am unfamiliar if its capable to do the same with numbers and such.
public static void DoSomething() { DoSomethingElse(); } public static void DoSomethingElse() { Dosomething(); }
-
I am aware how to do it alphabetically (ascending/descending) but I am unfamiliar if its capable to do the same with numbers and such.
public static void DoSomething() { DoSomethingElse(); } public static void DoSomethingElse() { Dosomething(); }
You'll likely want to write a custom
IComparer
for that. Then set theListView
sListViewItemSorter
property to an instance of your comparer. You do mean sort list items by column, not sort columns, right?
Try code model generation tools at BoneSoft.com.
-
You'll likely want to write a custom
IComparer
for that. Then set theListView
sListViewItemSorter
property to an instance of your comparer. You do mean sort list items by column, not sort columns, right?
Try code model generation tools at BoneSoft.com.
I will give it a try, thanks. Yes, that's what I meant.
public static void DoSomething() { DoSomethingElse(); } public static void DoSomethingElse() { Dosomething(); }