Control multi-selection in a Grid [message #65197] |
Mon, 29 June 2009 16:28 |
Daniel MacDonald![Friend of Eclipse Friend](/donate/web-api/friends_decorator.php?email=daniel.macdonald%40clear2pay.com) Messages: 15 Registered: July 2009 |
Junior Member |
|
|
Hello,
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
originated.
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
being selected.
Thanks
Daniel
|
|
|
Powered by
FUDForum. Page generated in 0.03647 seconds