Android Question B4XTable: Problem remove column run-time

Genricke

Member
Hi !
When you try to delete a column, it moves to the end of the table. :(
My cod (I attach an example for the test):

B4X:
'--- MY PROBLEM -> RUN-TIME REMOVE COLUMN
Private Sub Button1_Click   
        
    Private RemoveColumn As B4XTableColumn = B4XTable1.GetColumn("Interesting Number")
    Private IndexColumn  As Int = B4XTable1.VisibleColumns.IndexOf(RemoveColumn)
                    
    If IndexColumn <> -1 Then
        Log("REMOVE COLUMN: " & IndexColumn)
        B4XTable1.VisibleColumns.RemoveAt(IndexColumn)       
        B4XTable1.Refresh
    End If
End Sub

Result:

Table.png


Please help - I have no more ideas ! :(
 

Attachments

  • B4XTableTest.zip
    62.4 KB · Views: 88

Mahares

Expert
Licensed User
Longtime User
When you try to delete a column, it moves to the end of the table
I think your solution lies in this below thread. See post #2 by Erel:
I used it and it worked for me.
 
Upvote 0
Top