Page 1 of 1

Focus on DataGrid error

Posted: Wed Jun 01, 2011 10:10 pm
by townsend
I've got a DataGrid called, myGrid.
I create a Button, and place this code in there.

Code: Select all

     focus on group myGrid
I'm getting this error:
button "Button": execution error at line 2 (focus: not a valid control), char 1
Any idea why this won't work?

Re: Focus on DataGrid error

Posted: Thu Jun 02, 2011 3:20 am
by dglass
TraversalOn not selected?

Re: Focus on DataGrid error

Posted: Thu Jun 02, 2011 6:59 am
by jesse
The correct code for setting the focus on the datagrid is:

Code: Select all

   set the dgfocus  of group myGrid to true