dataGrid.Select(item, [modifiers])
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. |
VB
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)