[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Newsgroup Home]
|
[news.eclipse.technology.nebula] Control multi-selection in a Grid
|
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