Datagrid tables: which column is a clicked cell belong to?

zryip theSlug zryip.theslug at gmail.com
Thu Dec 23 14:09:54 EST 2010


On Thu, Dec 23, 2010 at 6:59 PM, David Bovill <david at vaudevillecourt.tv> wrote:
> I can do this with a table header, but there seems to be no easy way to find
> out the number of the column - I can do it by defining the behavior of a
> column template - then work things out using the templates name or a
> property I manually define - but am wandering if there is a built in way to
> do this?
>
> ColumnControlOfIndex (pColumnName, pIndex)

Hi David,

In the script of the datagrid group:

on mouseUp
   put the dgColumn of the dgDataControl of the target
end mouseUp


Regards,
-- 
-Zryip TheSlug- wish you the best! 8)
http://www.aslugontheroad.co.cc




More information about the use-livecode mailing list