Skip to content

SetSelectedRowsAll - cCJGrid

Allows you to clear or select all rows under program control

Type: Procedure

Parameters

Parameter Type Description
bSet Boolean State to set

Syntax

Procedure SetSelectedRowsAll Boolean bSet

Call Example

Send SetSelectedRowsAll bSet

Description

This sets all row's selection state to bSet. This allows you to clear or select all rows 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 pbMultiSelection.

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

Procedure LoadData
    tDataSourceRow[] MyData
    Get LoadMyData to MyData
    Send InitializeData MyData
    Send SetSelectedRowsAll True
End_Procedure