Solved

Multi Column Listview Auto Sort First Column

Posted on 2013-05-10
2
459 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

Is Your Active Directory as Secure as You Think?

More than 75% of all records are compromised because of the loss or theft of a privileged credential. Experts have been exploring Active Directory infrastructure to identify key threats and establish best practices for keeping data safe. Attend this month’s webinar to learn more.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

Title # Comments Views Activity
Calling web service and its methods dynamically 2 39
System32Int Error 8 56
Getfiles in vb.net 28 42
fso.FolderExists("\\server\HiddenFolder$") 4 49
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 …
Parsing a CSV file is a task that we are confronted with regularly, and although there are a vast number of means to do this, as a newbie, the field can be confusing and the tools can seem complex. A simple solution to parsing a customized CSV fi…
This Micro Tutorial will teach you how to censor certain areas of your screen. The example in this video will show a little boy's face being blurred. This will be demonstrated using Adobe Premiere Pro CS6.
Video by: Mark
This lesson goes over how to construct ordered and unordered lists and how to create hyperlinks.

911 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

16 Experts available now in Live!

Get 1:1 Help Now