473,396 Members | 1,853 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,396 software developers and data experts.

Sorting Files and Folders in a listview

Hi All,
I have an application similar to windows explorer.
The problem now is that am not able to sort the folders and files windows
explorer style
i.e. Ex All folders are sorted in alpha order and then the files.
basically grouping files and folders and sorting within the group.

If you look at the windows explorer sort style you will know what I want.

Has anyone implemeted such sort?
Any help, Code Donation or Links..

Greatly appreciated.
Thanks in advance.

Nov 21 '05 #1
3 3643
Hi,

There is a complete sample on MSDN what describe it, the only thing you
maybe want to do extra is sort on dates and more numeric, however when you
understand this, that that is easy to do.

http://support.microsoft.com/default...b;en-us;319399

I hope this helps.

cor
Nov 21 '05 #2
Cor,
Thanks for the reply.
Am able to sort the items in the listview but I want to sort it Windows
explorer style.
Like grouping Folders and files separetly and then perform sort on the group
and with-in the group.

If you click on c:\winnt and sort you will notice that all the folders are
together and sorted and then the files are together and sorted I want to
implemet that functionality.


"Cor Ligthert" wrote:
Hi,

There is a complete sample on MSDN what describe it, the only thing you
maybe want to do extra is sort on dates and more numeric, however when you
understand this, that that is easy to do.

http://support.microsoft.com/default...b;en-us;319399

I hope this helps.

cor

Nov 21 '05 #3
In my opinon is that sample the way to go and than make changes.

However maybe somebody knows it direct

Cor

"ILMergeHelp" <IL*********@discussions.microsoft.com>
Cor,
Thanks for the reply.
Am able to sort the items in the listview but I want to sort it Windows
explorer style.
Like grouping Folders and files separetly and then perform sort on the
group
and with-in the group.

If you click on c:\winnt and sort you will notice that all the folders are
together and sorted and then the files are together and sorted I want to
implemet that functionality.


"Cor Ligthert" wrote:
Hi,

There is a complete sample on MSDN what describe it, the only thing you
maybe want to do extra is sort on dates and more numeric, however when
you
understand this, that that is easy to do.

http://support.microsoft.com/default...b;en-us;319399

I hope this helps.

cor

Nov 21 '05 #4

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

0
by: rmorvay | last post by:
I have successfully integrated sorting in the listview control with the following code: Private Sub ListView_ColumnClick(ByVal sender As Object, ByVal e As...
1
by: VMI | last post by:
How can I sort a table column correctly when the table has values like "0", "A1", "AA-1", "B21", "3C", 4-32A", "1", "11-1", 2-A", etc... The table will then be loaded to a grid and that's when...
2
by: Xarky | last post by:
Hi, I would like to list all the folders and files on my harddrive in two seperate parts of the window (one part for folders, other part for files). Also, when clicking one of the folders...
19
by: Owen T. Soroke | last post by:
Using VB.NET I have a ListView with several columns. Two columns contain integer values, while the remaining contain string values. I am confused as to how I would provide functionality to...
2
by: Li Pang | last post by:
Hi, I use a listview to populate the data, and define a sorting direction with Me.ListView1.Sorting = System.Windows.Forms.SortOrder.Ascending so far no problem. As long as I add a new row...
3
by: Curtis | last post by:
I am trying to do a simple sort on a list view.With the listview control the first time I sort on the control it sorts the items but anytime after that it fails to sort. I'm sure this is a simple...
2
by: Steve Z. | last post by:
I am trying to implement the sorting of a ListView object by clicking on a column (using the example at:...
3
by: =?Utf-8?B?UHVjY2E=?= | last post by:
Hi, I'm using vs2005, .net 2 for C# windows application. One of my column on the Listview control has numericstring. Other columns are sorting correctly except this one. It seems to be sorting...
2
by: win | last post by:
The SortKey of VB6 is not in .Net. Can I still do sorting using a listview? Thanks
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
0
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
0
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...
0
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing,...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.