Select Method (SLDataGrid)

Class

SLDataGrid class

Action

Selects the specified row.

Syntax

dataGrid.Select(item, [modifiers])
Variable Description
item The row to select. LISTITEM.
modifiers Optional.The modifier keys to press while selecting the row. Use a modifier to select multiple rows. MODIFIERKEYSTATE.

Examples

In order to select the row that contains two cells with the text "cell 1" and "cell 2" type:
dataGrid.Select("cell 1 cell 2")
or
dataGrid.Select("*cell 1*")
In order to select the third row from a data grid type:
dataGrid.Select(3)
In order to select multiple rows in a data grid use modifier keys (such as Ctrl or Shift). For selecting the fist and the third row in a data grid that supports multiple selections, type the following:
dataGrid.Select(1)
dataGrid.Select(3, MOD_CTRL)