Grid.GetFocusCell

table Grid.GetFocusCell (

string ObjectName )

Example 1

-- Get the address of the cell that has focus
tblCellFocus = Grid.GetFocusCell("Grid1");

-- if there is room to move focus to the right
if tblCellFocus.Column < Grid.GetColumnCount("Grid1") then
-- set the focus one space to the right
Grid.SetFocusCell("Grid1", tblCellFocus.Row, tblCellFocus.Column + 1);
end

Sets the focus cell one column to the right (if it is not already there)

See also: Related Actions