Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » Nebula » Control multi-selection in a Grid
Control multi-selection in a Grid [message #65197] Mon, 29 June 2009 16:28
Daniel MacDonald is currently offline Daniel MacDonaldFriend
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
Previous Topic:Mini-Tutorial about Gantt Chart
Next Topic:Control multi-selection in a Grid
Goto Forum:
  


Current Time: Tue May 21 09:05:53 GMT 2019

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

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

Back to the top