> Am 02.11.2018 um 21:27 schrieb Klaus major-k via use-livecode 
> <use-livecode@lists.runrev.com>:
> 
> Hi all,
> 
>> Am 02.11.2018 um 21:13 schrieb Klaus major-k via use-livecode 
>> <use-livecode@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
kl...@major-k.de


_______________________________________________
use-livecode mailing list
use-livecode@lists.runrev.com
Please visit this url to subscribe, unsubscribe and manage your subscription 
preferences:
http://lists.runrev.com/mailman/listinfo/use-livecode

Reply via email to