# Using Different Selection Modes in FlexGrid

Learn about the different selection modes of Wijmo's JavaScript DataGrid in this documentation topic

## Content

By default, FlexGrid allows you to select a range of cells with the mouse or keyboard, just like Excel. The selectionMode property allows you to change that so that you can select a row, a range of rows, non-contiguous rows (like in a list-box), a single cell, or disable selection altogether.

## None
In this mode, the user cannot select cells using the mouse or keyboard.
```javascript
 smFlexGrid.selectionMode = 'None';
```

## Cell
In this mode, the user can select only a single cell at a time.
```javascript
 smFlexGrid.selectionMode = 'Cell';
```

## CellRange (Default)
In this mode, the user can select contiguous blocks of cells.
```javascript
 smFlexGrid.selectionMode = 'CellRange';
```

## Row
In this mode, the user can select a single row at a time.
```javascript
 smFlexGrid.selectionMode = 'Row';
```

## RowRange
In this mode, the user can select contiguous rows.
```javascript
 smFlexGrid.selectionMode = 'RowRange';
```

## ListBox
In this mode, the user can select non-contiguous rows.
```javascript
 smFlexGrid.selectionMode = 'ListBox';
```