jQuery Grid (pqGrid) provides Excel-like cell selection capabilities that allow users to interact with grid data efficiently. Below are the detailed features:
Ctrl (Windows) or Cmd (Mac) and click to select multiple non-contiguous cells.Ctrl + A (Windows) or Cmd + A (Mac) to select all cells in the grid.Ctrl + CCtrl + A / Cmd + ApqGrid allows developers to select cells programmatically via API methods:
Range(...).select() → Select a cell or multiple cells.Range({r1, c1, r2, c2}) → Define a rectangular range of cells.getSelection() → Retrieve currently selected cells.Selection().clear() → Clear selection.The Range API enables collective manipulation of selected cells:
r1 → Starting row indexc1 → Starting column indexr2 → Ending row indexc2 → Ending column indexrc → Row countcc → Column count
grid.Range({ r1: 2, r2: 4 }).select(); // Select rows 2 to 4
grid.Range({ r1: 1, c1: 1, r2: 3, c2: 3 }).select(); // Select a 3x3 block
Select Row Index: Select Field:
selectChange Event: