Sorting datagrid column with a tricj?
Klaus major-k
klaus at major-k.de
Fri Nov 2 16:29:38 EDT 2018
> Am 02.11.2018 um 21:27 schrieb Klaus major-k via use-livecode <use-livecode at lists.runrev.com>:
>
> Hi all,
>
>> Am 02.11.2018 um 21:13 schrieb Klaus major-k via use-livecode <use-livecode at lists.runrev.com>:
>>
>> Hi all,
>>
>> given a datagrid (table) with three columns
>> C1 -> visible
>> C2 -> visible
>> C3 -> invisible column
>>
>> Is it possible to sort a datagrid by column C3, although
>> the user has clicked the header of column C2.
>> Know what I mean?
>>
>> If this is possible, any hints on how to do this are highly appreciated.
>
> I tried this one, which works, but the header of column "C2" does not change
> to reflect the sort direction, it looks like inactive. Know what I mean?
Of course posting the script will help. 8-)
----------------------------------------------
on SortDataGridColumn pColumn
if pColumn = "C2" then
dispatch "SortByColumn" to me with "C3"
else
pass SortDataGridColumn
end if
end SortDataGridColumn
--------------------------------------------
--
Klaus Major
http://www.major-k.de
klaus at major-k.de
More information about the use-livecode
mailing list