I know how to do single selection, but I would like to do multiple row selection only by using CTRL + click without the option of dragging the mouse to select rows. So the user would have to hit ctrl + click each time to highlight additional rows. What would I need to do in order to do this?
There are two important settings for selection:
- the selection mode (single selection, single interval, multiple intervals). You can change this with method setSelectionMode.
- whether or not separate columns can be selected, or only rows. You can change this with method setColumnSelectionAllowed
The default is multiple intervals and only row selection.
Rob Spoor wrote:By default that's already enabled.
There are two important settings for selection:
- the selection mode (single selection, single interval, multiple intervals). You can change this with method setSelectionMode.
- whether or not separate columns can be selected, or only rows. You can change this with method setColumnSelectionAllowed
The default is multiple intervals and only row selection.
Would I have to do a mouse event listener in order to disable the mouse drag? Whenever you drag in either Multiple_Intervale or Single_Interval it highlights more than one row. Would mouse event listener be the best way to remove this?
Post by:autobot
Whip out those weird instruments of science and probe away! I think it's a tiny ad:
a bit of art, as a gift, the permaculture playing cards