Skip to main content



      Home
Home » Eclipse Projects » Nebula » Control multi-selection in a Grid
Control multi-selection in a Grid [message #65197] Mon, 29 June 2009 12:28
Eclipse UserFriend
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
Previous Topic:Mini-Tutorial about Gantt Chart
Next Topic:Control multi-selection in a Grid
Goto Forum:
  


Current Time: Wed Mar 12 00:26:05 EDT 2025

Powered by FUDForum. Page generated in 0.02521 seconds
.:: Contact :: Home ::.

Powered by: FUDforum 3.0.2.
Copyright ©2001-2010 FUDforum Bulletin Board Software

Back to the top