Grid.SetCellColors

Grid.SetCellColors ( 

string  ObjectName,

number  Row,

number  Column,

table   Colors,

boolean Redraw = true )

Description

Sets the background, and text colors of a cell in a grid object.

Parameters

ObjectName

(string) The name of the grid object.

Row

(number) The zero-based index of the cell's row.

Column

(number) The zero-based index of the cell's column.

Colors

(table) A table of numerical color values. Indexes (all optional) are Background and Text. Use GRID_CLR_DEFAULT (4278190080) to set the color back to the default system color for a cell. You can use the Grid.MakeColorRGB action to help make colors.

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