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. 3 3658
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
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
In my opinon is that sample the way to go and than make changes.
However maybe somebody knows it direct
Cor
"ILMergeHel p" <IL*********@di scussions.micro soft.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 This thread has been closed and replies have been disabled. Please start a new discussion. Similar topics |
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
System.Windows.Forms.ColumnClickEventArgs) Handles ListView.ColumnClick
If ListView.Sorting = System.Windows.Forms.SortOrder.Ascending Then
ListView.Sorting = System.Windows.Forms.SortOrder.Descending
Else
ListView.Sorting = System.Windows.Forms.SortOrder.Ascending
|
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 it'll have to sort correctly (when
clicking on the col. header).
Windows Explorer (in XP) seems to do this correctly when I sort files with
these names. In the column, I tried padding all values with 0's and the
sorting improved but it still...
|
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 shown, it should open
its subfolders and list again its folders and files in the other part
of the window. I was trying to use ListView and TreeView components,
but I don't have the slightest clue how to use them and if I should
use one of those.
|
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 sort columns
based on the column header the user has clicked in both Ascending and
Descending formats.
|
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 into the listview
programatically
I got an error on sorting the data at above line:
System Argument Exception: '-1' is not a valid value for 'index'.
| |
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 answer but anyways here is my
code any help would be greatly apperciated.
Private Sub Form1_Load(ByVal sender As System.Object, ByVal e As
System.EventArgs) Handles MyBase.Load
lvTest.Items.Add("1001")
lvTest.Items.Add("5000")...
|
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:
http://msdn.microsoft.com/library/default.asp?url=/library/en-us/dnwinforms/html/listviewsort.asp).
While debugging it I get the following exception:
An unhandled exception of type 'System.OutOfMemoryException' occurred
in System.Windows.Forms.dll
Additional information: Error creating window handle.
|
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 the 1st
numeric char at the beging of the string. How do I resolve this problem?
Thank you?
--
Thanks.
|
by: win |
last post by:
The SortKey of VB6 is not in .Net.
Can I still do sorting using a listview?
Thanks
|
by: marktang |
last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However, people are often confused as to whether an ONU can Work As a Router. In this blog post, we’ll explore What is ONU, What Is Router, ONU & Router’s main usage, and What is the difference between ONU and Router. Let’s take a closer look !
Part I. Meaning of...
|
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 effortlessly switch the default language on Windows 10 without reinstalling. I'll walk you through it.
First, let's disable language synchronization. With a Microsoft account, language settings sync across devices. To prevent any complications,...
| |
by: Oralloy |
last post by:
Hello folks,
I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>".
The problem is that using the GNU compilers, it seems that the internal comparison operator "<=>" tries to promote arguments from unsigned to signed.
This is as boiled down as I can make it.
Here is my compilation command:
g++-12 -std=c++20 -Wnarrowing bit_field.cpp
Here is the code in...
|
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 Update option using the Control Panel or Settings app; it automatically checks for updates and installs any it finds, whether you like it or not. For most users, this new feature is actually very convenient. If you want to control the update process,...
|
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, and deployment—without human intervention. Imagine an AI that can take a project description, break it down, write the code, debug it, and then launch it, all on its own....
Now, this would greatly impact the work of software developers. The idea...
|
by: isladogs |
last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM).
In this session, we are pleased to welcome a new presenter, Adolph Dupré who will be discussing some powerful techniques for using class modules.
He will explain when you may want to use classes instead of User Defined Types (UDT). For example, to manage the data in unbound forms.
Adolph will...
|
by: TSSRALBI |
last post by:
Hello
I'm a network technician in training and I need your help.
I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs.
The last exercise I practiced was to create a LAN-to-LAN VPN between two Pfsense firewalls, by using IPSEC protocols.
I succeeded, with both firewalls in the same network. But I'm wondering if it's possible to do the same thing, with 2 Pfsense firewalls...
|
by: adsilva |
last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
| |
by: muto222 |
last post by:
How can i add a mobile payment intergratation into php mysql website.
| |