Skip to content

SetSelectedRow - cCJGrid

Allows you to clear or select a row under program control

Type: Procedure

Parameters

Parameter Type Description
iIndex Integer Row to be selected
bSet Boolean State to set

Syntax

Procedure SetSelectedRow Integer iIndex Boolean bSet

Call Example

Send SetSelectedRow iIndex bSet

Description

This sets a row's selection state, passed as iIndex, to bSet. This allows you to clear or select a row under program control. "Selected" refers to whether the row is highlighted and should not be confused with SelectedRow (which is the focused row). This relies on pbSelectionEnable and pbMultipleSelection.

Other selection methods are GetIndexesForSelectedRows, SetIndexesForSelectedRows and SetSelectedRowsAll. This should only be used with static grids.