Datagrids: unsorting data
Trevor DeVore
lists at mangomultimedia.com
Wed Apr 29 10:07:15 EDT 2009
On Apr 29, 2009, at 4:58 AM, David Bovill wrote:
> Is there a way to unsort a data grid - I think I am right in that
> sorting
> sorts the dgText - but possible not the dgData or persistant data -
> is there
> an unsort command - I clicked on something I shouldn't of :)
Once you sort the data it is sorted everywhere though looking at the
code it appears that the persistent data is not updated after sorting.
This will be fixed in the next version but you could do this to
restore your previous sort:
set the dgIndexes of group "DataGrid" to the dgCache["sequencing"] of
group "DataGrid"
The property that actually changes internally is the dgIndexes of the
data grid. The dgIndexes contains a comma delimited list of the
internal array keys in the sorted order.
Regards,
--
Trevor DeVore
Blue Mango Learning Systems
www.bluemangolearning.com - www.screensteps.com
More information about the use-livecode
mailing list