Skip to main content
All docs
V24.1
Tab

VerticalGridBatchEditSettings.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
ASPxVerticalGridEditingSettings
.BatchEditSettings .EnableMultipleCellSelection

Remarks

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

In markup:

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

In code:

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

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(visibleIndex, rowIndex) and UnselectCell(visibleIndex, rowIndex)
Select and deselect specific cells.
SelectCellByKey(key, rowIndex) and UnselectCellByKey(key, rowIndex)
Select and deselect cells with the specified key.
See Also