## GridWidget.AddToSelection

### Introduced

v4.2

### Description

Adds a cell to the selection. In header selection mode, specify -1 as the row to select an entire column, or specify -1 as the column to select an entire row.

### C# Syntax

    GridWidget.AddToSelection( Int32 in_Column, Int32 in_Row );

### Scripting Syntax

    GridWidget.AddToSelection( ColumnIndex, RowIndex );

### Parameters

Parameter | Type | Description
--- | --- | ---
ColumnIndex | Long or String | Index of the Column. The left-most column has index 0.
RowIndex | Long or String | Index of the Row. The top row has index 0.

### See Also

GridWidget