So I was wrong. List boxes and tree views can be sorted, but to sort a list view, you need to sort the items prior to adding them to the control (as J.J. as already done).

Aaron

On 1/8/2010 8:45 PM, Aaron Smith wrote:
*sigh* Not only was I getting list views and list boxes mixed up, but I
was thinking about tree views when I wrote my initial reply. Sheesh!

I thought for sure there was a way to specify the sorting method of a
list view, especially since you can retrieve that information. I also
vaguely remember discussing this internally and concluding that it was
an omission of sorts.

Ignore me for now; I'll do some research.

Aaron

On 1/8/2010 8:39 PM, Aaron Smith wrote:
Perhaps I have my list views and list boxes mixed up.

Aaron

On 1/8/2010 8:37 PM, Chip Orange wrote:
Hi Aaron,

fyi, I'm in the xml part of the scripting help manual, in the listview
element, and this option doesn't seem to be there.

Chip


-----Original Message-----
From: Aaron Smith [mailto:[email protected]]
Sent: Friday, January 08, 2010 8:33 PM
To: [email protected]
Subject: Re: Sorting Listviews

There's no built in, programmatic way to sort a list view. You can,
however,
set the sort="yes" option in the list view's element in the XML (check
the
addremove.xml for an example). If you do that, the contents of a list
view
will be sorted automatically when the list view gets rendered. If you
want
to sort the contents on the fly, you'll need to create your own
routine to
handle that.

Aaron

On 1/8/2010 7:58 PM, J.J. Meddaugh wrote:
I see a property which
will show me the current sort for a listview, but there seems to be no
way to set our own sort for one in a dialog.
Am I missing something?
I could do it manually, but this seems like a longwinded approach.
J.J. Meddaugh - ATGuys.com
A premier Licensed Code Factory and KNFB Reader distributor

--
To insure that you receive proper support, please include all past
correspondence (where applicable), and any relevant information
pertinent to
your situation when submitting a problem report to the GW Micro
Technical
Support Team.

Aaron Smith
GW Micro
Phone: 260/489-3671
Fax: 260/489-2608
WWW: http://www.gwmicro.com
FTP: ftp://ftp.gwmicro.com
Technical Support& Web Development




--
To insure that you receive proper support, please include all past
correspondence (where applicable), and any relevant information
pertinent to your situation when submitting a problem report to the GW
Micro Technical Support Team.

Aaron Smith
GW Micro
Phone: 260/489-3671
Fax: 260/489-2608
WWW: http://www.gwmicro.com
FTP: ftp://ftp.gwmicro.com
Technical Support & Web Development

Reply via email to