B4J Question [SOLVED] How to get the cells values of a selected row

Armando Barrera

Member
Licensed User
Longtime User
Hi everyone,

- Do someone know how can I get de value of the first three cells of a selected row.

- And do you know what triggers the SelectedCellsChanged and the Selected RowChanged, i ask this because in one project when i click on a cell it sent me to de SelectedCellChanged and when i run the TableExample (i took it from the forum) it sends me to the SelectedRowChanged

Thanks in advance
 
Solution
B4X:
Sub TableView1_MouseClicked (EventData As MouseEvent)
    
    If TableView1.Items.Size>0 And EventData.ClickCount=2 And TableView1.SelectedRow>=0  Then
        
        Dim Row(8) As Object=TableView1.SelectedRowValues
        Dim item1 As object=Row(0)
        Dim item2 As object=Row(1)
        Dim item2 As object=Row(3)
       '....
End sub

behnam_tr

Active Member
Licensed User
Longtime User
B4X:
Sub TableView1_MouseClicked (EventData As MouseEvent)
    
    If TableView1.Items.Size>0 And EventData.ClickCount=2 And TableView1.SelectedRow>=0  Then
        
        Dim Row(8) As Object=TableView1.SelectedRowValues
        Dim item1 As object=Row(0)
        Dim item2 As object=Row(1)
        Dim item2 As object=Row(3)
       '....
End sub
 
Upvote 1
Solution
Top