Action
Selects the specified row.
Syntax
dataGrid.Select(item, [modifiers])
Variable |
Description |
item |
The row to select. ItemIdentifier.
|
modifiers |
Optional: The modifier keys to press while selecting the row. Use a modifier to select multiple rows. ModifierKeys.
|
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(2)
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(0)
dataGrid.Select(2, ModifierKeys.Control)