Re: How does Windows Explorer sort file names? Emulate this in table...
From: Dmitriy Lapshin [C# / .NET MVP] (x-code_at_no-spam-please.hotpop.com)
Date: 09/15/04
- Next message: cmrchs_at_yahoo.com: "Properties : set different from get"
- Previous message: mark: "Re: Manipulating DataTables with ADO.NET in C#"
- In reply to: VMI: "How does Windows Explorer sort file names? Emulate this in table..."
- Messages sorted by: [ date ] [ thread ]
Date: Wed, 15 Sep 2004 16:04:08 +0300
Hi,
A vague guess... you need something like a type inherited from System.String
where the CompareTo method would be overridden to implement the proper
sorting algorithm. Then, you should store object of this customized String
type in the table.
-- Sincerely, Dmitriy Lapshin [C# / .NET MVP] Bring the power of unit testing to the VS .NET IDE today! http://www.x-unity.net/teststudio.aspx "VMI" <vonchi_m@yahoo.com> wrote in message news:uZGDueomEHA.3608@TK2MSFTNGP09.phx.gbl... > I have a Windows datagrid whose column values are > (1,10,100,1000,101,10-1,103,11,1710,2). When the column's sorted (the > column's of type String), it'll sort this way > [1,10,100,1000,101,10-1,103,11,1710,2], which is wrong. But in Windows > Explorer, when there are files with these same names , Explorer will sort > them like this: [1,2,10,10-1,11,100,101,103,1000,1710], which is correct. > > How can I emulate this Windows explorer sort in my column? > > Thanks. > >
- Next message: cmrchs_at_yahoo.com: "Properties : set different from get"
- Previous message: mark: "Re: Manipulating DataTables with ADO.NET in C#"
- In reply to: VMI: "How does Windows Explorer sort file names? Emulate this in table..."
- Messages sorted by: [ date ] [ thread ]
Relevant Pages
|