pqGrid supports Excel-like column selection that allows users to interact with entire columns of data.
Columns can be selected via mouse, keyboard shortcuts, or API methods.
Ctrl (Windows) or Cmd (Mac) and click on multiple column headers.Shift and click between two column headers to select all columns in between.Ctrl + C → Copy selected columns.Ctrl + X → Cut selected columns.pqGrid provides API methods to select and manipulate columns programmatically:
select({ colIndx }) → Select a specific column by index.range({ c1, c2 }) → Select a contiguous range of columns.getSelection() → Retrieve currently selected columns.removeSelection() → Clear column selection.The Range API can be applied to columns:
c1 → Starting column indexc2 → Ending column indexcc → Column count
// Selects columns from index 1 to 3
grid.Range({ c1: 1, c2: 3 }).select();
selectChange Event: