Skip to main content
All docs
V24.1
Tab

GridViewBatchEditSettings.EnableMultipleCellSelection Property

Specifies whether to enable multiple cell selection.

Namespace: DevExpress.Web

Assembly: DevExpress.Web.v24.1.dll

NuGet Package: DevExpress.Web

Declaration

[DefaultValue(false)]
public bool EnableMultipleCellSelection { get; set; }

Property Value

Type Default Description
Boolean false

true to allow users to select multiple cells; otherwise, false.

Property Paths

You can access this nested property as listed below:

Object Type Path to EnableMultipleCellSelection
ASPxGridViewEditingSettings
.BatchEditSettings .EnableMultipleCellSelection

Remarks

Set the EnableMultipleCellSelection property to true to allow users to select multiple cells in ASPxGridView.

Run Demo: GridView - Multiple Cell Selection

In markup:

<dx:ASPxGridView ID="GridView" runat="server" ...>
      ...
    <SettingsEditing Mode="Batch">
        <BatchEditSettings EnableMultipleCellSelection="True" />
    </SettingsEditing>
</dx:ASPxGridView>

In code:

ASPxGridView grid1 = new ASPxGridView();
// ...
grid1.SettingsEditing.BatchEditSettings.EnableMultipleCellSelection = true;

ASPxGridView - Select multiple cells

End-User Capabilities

Select Cells

Users can select multiple cells with the mouse or keyboard:

  • Click a cell and drag over the required cells while holding the left mouse button.
  • Hold Shift and press the arrow keys to select a contiguous cell range. To add non-adjacent cells to the current selection, hold Ctrl and click the required cells.

Manage Cells

Copy and paste the selected cells to the same grid, or a sheet of an Excel file or Spreadsheet.
Select cells and press Ctrl+C. Select the cell range where you want to paste the copied cells and press Ctrl+V.
Paste a value to all selected cells.
Copy a value to the clipboard. Select the required cells and press Ctrl+V to paste the copied value to all selected cells.
Use the context menu to copy/paste cell values.
Right-click the selected cells to invoke the context menu.

Note

Note that this functionality uses the navigator.clipboard property which works only if a web site supports a secure origin (HTTPS).

CellSelectionChanging
Fires when you select or deselect a cell.
GetSelectedCells
Obtains selected cells.
SelectCell(rowVisibleIndex, columnIndex) and UnselectCell(rowVisibleIndex, columnIndex)
Select and deselect specific cells.
SelectCellByKey(key, columnIndex) and UnselectCellByKey(key, columnIndex)
Select and deselect cells with the specified key.
See Also