SetCurrentRow Method

Description

Sets the specified row as the current (active) row in the design-time or run-time data table.

Note: You can only set a row that contains at least one value.

Syntax

DTSheet.SetCurrentRow RowNumber

Argument

Type

Description

RowNumber
Number
Indicates the number of the row to set as the active row.

Example

The following example uses the SetCurrentRow method to change the active row to the second row in the MySheet run-time data sheet.

DataTable.GetSheet("MySheet").SetCurrentRow(2)