# Selection Modes

## Content



The MultiRow control allows you to select a range of cells with the mouse or keyboard, similar to Excel. The [SelectionMode](/componentone/api/mvc/online-mvc-core/dotnet-api/C1.AspNetCore.Mvc/C1.Web.Mvc.Grid.SelectionMode.html) property allows you to select a Row, a Range of Rows, Non-Contiguous Rows (like in a List-Box), a Single Cell, a Range of Cells or disable selection altogether.

To specify the selection behavior in MultiRow control, you need to set the [SelectionMode](/componentone/api/mvc/online-mvc-core/dotnet-api/C1.AspNetCore.Mvc/C1.Web.Mvc.Grid.SelectionMode.html) property to:

*   **Cell**: The SelectionMode when set to `Cell`, lets a user select only a single cell at a time.
*   **CellRange**: The SelectionMode when set to `CellRange`, lets a user select contiguous blocks of cells.
*   **ListBox**: The SelectionMode when set to `ListBox`, lets a user select non-contiguous rows.
*   **None**: The SelectionMode when set to `None`, doesn't allow user to select cells with the mouse or keyboard.
*   **Row**: The SelectionMode when set to `Row`, lets a user select a single row at a time.
*   **RowRange**: The SelectionMode when set to `RowRange`, lets a user select contiguous rows.

The following image shows how the MultiRow control appears on setting [SelectionMode](/componentone/api/mvc/online-mvc-core/dotnet-api/C1.AspNetCore.Mvc/C1.Web.Mvc.Grid.SelectionMode.html) to **Row**. This example uses the sample created in the [Quick Start](/componentone/docs/mvc/online-mvc-core/WorkingwithControls/MultiRow/QuickStartAddDataMultiRow) topic.

![](https://cdn.mescius.io/document-site-files/images/9b6a6cfe-b8e8-42e9-8a04-da6cb7762977/images/selectionmodesmultirow.png)

**SelectionMode.cshtml**

```html
selection-mode="Row"
```