B4J Question multi selection in the tableview

electro179

Active Member
Licensed User
Longtime User
hello

How to do a multi selection in the table view with the pressed shift key (range) or CTRL (to select line 2,5,6,10,...) like explorer of windows.
and after how to get the selection?


thank you
 

jmon

Well-Known Member
Licensed User
Longtime User
You can use the GetSelectedIndices method:

B4X:
For Each SelectedItem As Object In lv.GetSelectedIndices
    ...
Next

(EDIT) Sorry, I read Listview instead of tableview.
You need to use the SelectedRowValues() method.
 
Last edited:
Upvote 0
Top