On Jul 31, 2006, at 7:34 PM, CV wrote:
I'd suggest loading your array from the Action event handler of a
Timer(mode 1) enabled from HeaderPressed. You can experiment with
the Period, but regardless, the Timer is designed to wait until
other processes are completed, so it should readily capture the sort.
After running some tests, I determined that there was NO WAY I could
capture the change in sorting of columns from ANYTHING inside of the
ListBox, as none of the events allow for letting the 'dust settle',
i.e., all actions completed.
There might be some other functionality that would allow one to
capture that sort of thing AFTER all is 'said and done'. But I'm not
aware of it.
Instead, I realized that I can wait until the end-user decides to
finish sorting data in the ListBox and then double-clicks a row to
see a form view or changes tables, [Note: The ListBox is in a
TabPanel of the window.] THEN I can capture the re-sorted information
in the array and work with it.
Kludge, but relatively efficient kludge.
I put a boolean property in the window to capture whether or not
sorting has occurred using the HeaderPressed event.
The next question [there ALWAYS is one of those] is....
....what's the best way to capture the sequence in which the header
is pressed? I'm thinking of capturing the columns, the sequence in
which they are pressed and whether they end up ascending or descending.
Any suggestions?
Regards,
Chuck
_______________________________________________
Unsubscribe or switch delivery mode:
<http://www.realsoftware.com/support/listmanager/>
Search the archives of this list here:
<http://support.realsoftware.com/listarchives/lists.html>