View Revisions: Issue #27000

Summary 0027000: [Patch] Multiple range select in grids
Revision 2014-11-05 22:21 by wp
Description Using TCustomGrid and its descendants, TDrawGrid and TStringGrid, it is possible to select only a single cell range. Standard behavior, particularly of spreadsheet applications, is selection of multiple ranges which is achieve by holding the CTRL key down while the next ranges are selected by the mouse.

In the attached patch this behavior implemented also for TCustomGrid. There is a new property RangeSelectMode: TRangeSelectMode = (rsmSingle, rsmMulti). Multi-selection is achieved by setting this property to rsmMulti and having the grid option goRangeSelect set. The default behavior is rsmSingle and does not break existing programs.

After application of the patch, the new behavior can be tested on the attached demo (see also attached screenshot).
Revision 2014-11-05 22:18 by wp
Description Using TCustomGrid and its descendants, TDrawGrid and TStringGrid, it is possible to select only a single cell range. Standard behavior, particularly of spreadsheet applications, is selection of multiple ranges which is achieve by holding the CTRL key down while the next ranges are selected by the mouse.

In the applied this behavior implemented also for TCustomGrid. There is a new property RangeSelectMode: TRangeSelectMode = (rsmSingle, rsmMulti). Multi-selection is achieved by setting this property to rsmMulti and having the grid option goRangeSelect set. The default behavior is rsmSingle and does not break existing programs.

After application of the patch, the new behavior can be tested on the attached demo (see also attached screenshot).