Sorting date in ListView... 
Author Message
 Sorting date in ListView...

Dear all,

    I've tried to sort data in ListView, everything is working well except
for sorting date. The ListView treats date as string to search (Of course
it's a string when added onto the ListView)...

    Is there any method to make it sort date correctly ?

    Thanks a lot.

Pigeon.



Sat, 01 Jul 2000 03:00:00 GMT  
 Sorting date in ListView...

See Article ID: Q170884 on Microsoft Knowledge base. You have to use API
calls.

cheers

Paul Chapelhow


remove nojunk for e-mail address



Quote:
> Dear all,

>     I've tried to sort data in ListView, everything is working well
except
> for sorting date. The ListView treats date as string to search (Of course
> it's a string when added onto the ListView)...

>     Is there any method to make it sort date correctly ?

>     Thanks a lot.

> Pigeon.



Sat, 01 Jul 2000 03:00:00 GMT  
 Sorting date in ListView...

Quote:

>Dear all,

>    I've tried to sort data in ListView, everything is working well except
>for sorting date. The ListView treats date as string to search (Of course
>it's a string when added onto the ListView)...

>    Is there any method to make it sort date correctly ?

I have the same problem. ( So does the Windows Explorer)

I end up adding a column to the listview with the "single" time value
and went use hit "Date" column I will sort the list base on the
"hidden" column.    The GUI is not perfect.  You can check out how it
work in my program

You can check out my program "Visual Source Code Explorer"  at:
http://www.kudonet.com/~ixfwin/vsce.html

It is an source code cross reference and documentation tool.

-- Tony Lee - Author of Visual Source Code Explorer
http://www.kudonet.com/~ixfwin/vsce.html



Mon, 17 Jul 2000 03:00:00 GMT  
 Sorting date in ListView...

Quote:


> >Dear all,

> >    I've tried to sort data in ListView, everything is working well except
> >for sorting date. The ListView treats date as string to search (Of course
> >it's a string when added onto the ListView)...

> >    Is there any method to make it sort date correctly ?

> I have the same problem. ( So does the Windows Explorer)

> I end up adding a column to the listview with the "single" time value
> and went use hit "Date" column I will sort the list base on the
> "hidden" column.    The GUI is not perfect.  You can check out how it
> work in my program

> You can check out my program "Visual Source Code Explorer"  at:
> http://www.kudonet.com/~ixfwin/vsce.html

> It is an source code cross reference and documentation tool.

> -- Tony Lee - Author of Visual Source Code Explorer
> http://www.kudonet.com/~ixfwin/vsce.html

Check out the VBNet site for a real cool example in the Code library
section

http://home.sprynet.com/sprynet/rasanen/vbnet/default.htm

Atul Tewari



Mon, 17 Jul 2000 03:00:00 GMT  
 Sorting date in ListView...

Quote:


> >Dear all,

> >    I've tried to sort data in ListView, everything is working well except
> >for sorting date. The ListView treats date as string to search (Of course
> >it's a string when added onto the ListView)...

> >    Is there any method to make it sort date correctly ?

> I have the same problem. ( So does the Windows Explorer)

> I end up adding a column to the listview with the "single" time value
> and went use hit "Date" column I will sort the list base on the
> "hidden" column.    The GUI is not perfect.  You can check out how it
> work in my program

> You can check out my program "Visual Source Code Explorer"  at:
> http://www.kudonet.com/~ixfwin/vsce.html

> It is an source code cross reference and documentation tool.

> -- Tony Lee - Author of Visual Source Code Explorer
> http://www.kudonet.com/~ixfwin/vsce.html

  go to vbnet . I had the same problem . Randy has an example there that sorts
dates.
It drove me crazy until i found the example !!
 http://home.sprynet.com/sprynet/rasanen/vbnet/default.htm

---- Roger adams



Thu, 20 Jul 2000 03:00:00 GMT  
 
 [ 5 post ] 

 Relevant Pages 

1. Sort dates in Listview

2. Sorting dates in Listview

3. HELP: Sorting dates in Listview with callbacks loses visual elements

4. Sorting dates in Listview

5. Sorting date in ListView...

6. sort date in listview

7. Sorting date in ListView...

8. Sorting date in ListView...

9. Sorting dates in Listview

10. Q: How to sort by date in ListView Control

11. ListView - How to sort by numeric/date and hide columns

12. [Fwd: Q: How to sort by date in ListView Control]

 

 
Powered by phpBB® Forum Software