Solved

Multi Column Listview Auto Sort First Column

Posted on 2013-05-10
2
456 Views
Last Modified: 2013-05-13
Everything I read about sorting a Listview control includes the need for a column click.  This will be a static Listview and I want it sorted 'On Load', if you will.  I have a two column Listview and I want it to sort on the first column. This sorts it, but sorts it on the second column:

 Me.ListView1.Sorting = Windows.Forms.SortOrder.Ascending

Is there a way to do this?
0
Comment
Question by:G Scott
2 Comments
 
LVL 23

Accepted Solution

by:
Michael74 earned 500 total points
ID: 39157525
In the past I done the sorting in another container such as an arraylist then just added the sorted list to the listbox

Michael
0
 
LVL 1

Author Closing Comment

by:G Scott
ID: 39161000
Thanks, didn't think of that.
0

Featured Post

What Is Threat Intelligence?

Threat intelligence is often discussed, but rarely understood. Starting with a precise definition, along with clear business goals, is essential.

Join & Write a Comment

I think the Typed DataTable and Typed DataSet are very good options when working with data, but I don't like auto-generated code. First, I create an Abstract Class for my DataTables Common Code.  This class Inherits from DataTable. Also, it can …
Introduction As chip makers focus on adding processor cores over increasing clock speed, developers need to utilize the features of modern CPUs.  One of the ways we can do this is by implementing parallel algorithms in our software.   One recent…
When you create an app prototype with Adobe XD, you can insert system screens -- sharing or Control Center, for example -- with just a few clicks. This video shows you how. You can take the full course on Experts Exchange at http://bit.ly/XDcourse.
This video explains how to create simple products associated to Magento configurable product and offers fast way of their generation with Store Manager for Magento tool.

746 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

11 Experts available now in Live!

Get 1:1 Help Now