Grid.InsertRow

number Grid.InsertRow (

string ObjectName,

number InsertPosition,

boolean Redraw = true )

Description

Inserts a row into a grid object and returns the index of the inserted row.

Parameters

ObjectName

(string) The name of the grid object.

InsertPosition

(number) The zero-based position where the row should be inserted. Use -1 to add a row as the last row.

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

(number) The zero-based index of the newly inserted row. You can use Application.GetLastError to determine whether this action failed, and why.

ResultVariable

When adding an action with the script editor, you can use this field to specify a variable that the return value will be stored in.

See also: Related Actions