Grid.SetSelectedRange

Grid.SetSelectedRange (

string ObjectName,

number MinRow,

number MinColumn,

number MaxRow,

number MaxColumn,

boolean SelectCells = true,

boolean Redraw = true )

Example 1

TotalColumn = Grid.GetColumnCount("Grid1");
TotalRow = Grid.GetRowCount("Grid1");
-- Set the selected cells
Grid.SetSelectedRange("Grid1", 0, 0, TotalColumn / 2, TotalRow / 2, true, true);

Select half of the cells in the object "Grid1"

See also: Related Actions