Datagrid question

Peter Haworth pete at mollysrevenge.com
Thu Feb 3 12:50:06 EST 2011


Hi Trevor,
Here's an outline of what I'm trying to do.  I've used a custom version of the default header behavior to display a popup menu when the user clicks on a datagrid header.  That all works fine. When The user selects a menu item from the popup, I have a menuPick handler in the script of the popup menu that processes the choice and that's where I need to get access the properties I mentioned.

The script is able to get the ID of the datagrid and I tried things like put the dgColumn of group ID xyz but that throws a run time error.

I've put this code in the popup menu handler because I want to make the popup generically usable on any datagrid.  I would prefer to put in a behavior for the datagrid group but I don't think that's possible because the datagrid already has a behavior set for it?

Thanks,

Pete Haworth


On Feb 2, 2011, at 5:52 PM, Trevor DeVore wrote:

> What is the context that you are trying to get the dgColumn and the
> dgHeaderControl?





More information about the use-livecode mailing list