Oh hang on...do I have to repopulate the listview ? i.e. clear it then
load the values back in? Obviously using Ross's idea this works, but is
that right?

Jeremy

-----Original Message-----
From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On
Behalf Of Jeremy Coulter
Sent: Saturday, 18 October 2003 16:24
To: Multiple recipients of list delphi
Subject: RE: [DUG]: Listview Sort


Yip got that far, but how do I trigger it to go off and do a sort again
when I click on the header? That's where I am stuck now.

Jeremy

-----Original Message-----
From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On
Behalf Of Ross Levis
Sent: Saturday, 18 October 2003 16:33
To: Multiple recipients of list delphi
Subject: Re: [DUG]: Listview Sort


Jeremy Coulter wrote:
> The only problem I NOW have is, I want to click on
> the col header and make it sort the other way.
> How do I do that?

What I do is swap the value of a global boolean var when the header is
clicked.  Then in the sort routine, just reverse the -1,0,1 result.

Ross Levis.

------------------------------------------------------------------------
---
    New Zealand Delphi Users group - Delphi List - [EMAIL PROTECTED]
                  Website: http://www.delphi.org.nz
To UnSub, send email to: [EMAIL PROTECTED] 
with body of "unsubscribe delphi"
Web Archive at: http://www.mail-archive.com/delphi%40delphi.org.nz/

------------------------------------------------------------------------
---
    New Zealand Delphi Users group - Delphi List - [EMAIL PROTECTED]
                  Website: http://www.delphi.org.nz
To UnSub, send email to: [EMAIL PROTECTED] 
with body of "unsubscribe delphi"
Web Archive at: http://www.mail-archive.com/delphi%40delphi.org.nz/

---------------------------------------------------------------------------
    New Zealand Delphi Users group - Delphi List - [EMAIL PROTECTED]
                  Website: http://www.delphi.org.nz
To UnSub, send email to: [EMAIL PROTECTED] 
with body of "unsubscribe delphi"
Web Archive at: http://www.mail-archive.com/delphi%40delphi.org.nz/

Reply via email to