B4J Question table view

electro179

Active Member
Licensed User
Longtime User
hello

I have 3 questions on table view

How to empty all the table
How delete one row

Can i modify one row without selected row because I must modify automatically one row each 300 ms by external interrupt without do a selection

I use this code

B4X:
Dim selected As Int = NumNode-1
                    If selected = -1 Then Return
                    tablelist.SelectedRow = selected
                    Dim row() As Object = tablelist.SelectedRowValues
                    Dim lbl As Label = row(4)
                    lbl.text = Node(NumNode-1).responsecount
 

davelew1s

Active Member
Licensed User
Longtime User
Hi electro179 try this:-
Table1 .Items .RemoveAt (Table1 .SelectedRow )
'Table1 .SelectedRow' could be any row
Dave.
 
Upvote 0
Top