DataGrid REALbasic Plugin |

# DataGridSelection.Set Method

Selects range of cells (or rows) in a MultiSelection DataGrid.

Set(
firstColumn as Integer,
firstRow as Integer,
lastColumn as Integer,
lastRow as Integer)

#### Parameters

firstColumn
  The column number of the first cell in the selection.
firstRow
  The row number of the first cell in the selection.
lastColumn
  The column number of the last cell in the selection.
lastRow
  The row number of the last cell in the selection.

#### Remarks

This method deselects previous selection.
Note:
Row and Column numbers in the Grid controls are one based which means that the first row and first columns are number one.

#### See Also

DataGridSelection Class