vb.net - Sorting listview using combobox -


How can I sort a list view value using an external component? This means that users do not click on the top of the list view, but select the Combobox value, which provides a specific header to the user who can sort the user. I have around 6 columns on the list. I just need to sort out this list view by choosing the combobox and I will go to Congobox 1. I will write a code to sort the list view based on the text value. Any ideas?

You must write a class that implements System.Collection.IComparer, and based on your dropdown value But there are your comparative rules. You need to set the listview ListViewItemSorter property with the list of comparisons you have written, and call it the sort method.

Comments

Popular posts from this blog

Java - Error: no suitable method found for add(int, java.lang.String) -

java - JPA TypedQuery: Parameter value element did not match expected type -

c++ - static template member variable has internal linkage but is not defined -