Grid.SetSelectedRange

Grid.SetSelectedRange (

string ObjectName,

number MinRow,

number MinColumn,

number MaxRow,

number MaxColumn,

boolean SelectCells = true,

boolean Redraw = true )

Description

Selects or deselects a range of cells within a grid object.

Parameters

ObjectName

(string) The name of the grid object.

MinRow

(number) The (zero-based) index of the row to start selection at.

MinColumn

(number) The (zero-based) index of the column to start selection at.

MaxRow

(number) The (zero-based) index of the row to stop selection at.

MaxColumn

(number) The (zero-based) index of the column to stop selection at.

SelectCells

(boolean) Whether the cell range is selected or deselected. This is an optional argument and if omitted it will default to true.

VALUE

DESCRIPTION

true

Select the cell range.

false

Deselect the cell range.

Redraw

(boolean) Whether the grid should be automatically redrawn after the operation. Usually you will want to set this to true. However there may be times when you want to perform a lot of grid actions and delay the redraw until later. This is an optional argument. If omitted it will default to true.

VALUE

DESCRIPTION

true

Automatically redraw the grid after the operation. (Default)

false

Delay the redraw until later.

Returns

Nothing. You can use Application.GetLastError to determine whether this action failed, and why.

See also: Related Actions