|Control multi-selection in a Grid [message #595477]
||Mon, 29 June 2009 16:28
| Daniel MacDonald
Registered: July 2009
I have a question about multiple selection with the Grid widget.
Essentially what I want to do is to be able to drag-select a number of
cells, but limit that selection to only the column where the drag
For example, say my grid has 3 columns and 10 rows, if I start dragging in
cell A1, then I only the rows from column A to be selectable.
Does anyone have any pointers to how (or if) this could be achieved?
I haven't tried this yet, but I'm pretty sure I could modify the selection
once the mouse has been released and use GridTableViewer.setSelection(~)
to change it so the selection is from only one column. However during the
actual drag, it would still give the impression that multiple columns are
Powered by FUDForum
. Page generated in 0.01956 seconds