Cannot focus on a datagrid??

zryip theSlug zryip.theslug at
Mon Dec 19 14:14:02 EST 2011

On Mon, Dec 19, 2011 at 7:25 PM, Bob Sneidar <bobs at> wrote:
> Hi all.

Hi Bob,

> Is this normal? I have in a script (or the message box) focus on group "dgSites". This is a datagrid. I get an error:
> Message execution error:
> Error description: focus: not a valid control
> Hint:
> A datagrid is not a valid control for receiving the focus command?? Isn't that odd? Or is it a bug? Of course I can hack around it by using:
> focus on nothing;tabKey
> But you all know how I HATE to hack around things....  mmm..... okay I can't back that up. But still!

Have you tried to use the dgFocus property from the datagrid API?

set the dgFocus of group "DataGrid" to {true | false}

Best Regards,
-Zryip TheSlug- wish you the best! 8)

More information about the Use-livecode mailing list