Android Question B4Xtable, select row and page

Mostez

Well-Known Member
Licensed User
Longtime User
I want to highlight row and go to the page of that row by code, I could select the row by:
B4X:
B4XTableSelections.CellClicked(ColumnId, RowId)
but when selecting the row, it does not go to automatically to its page, any ideas?
 

Mostez

Well-Known Member
Licensed User
Longtime User
I tried this and it worked OK
B4X:
Sub GotoRow(RowIndex As Long)
    Dim rp As Long = tblDataBrowserTable.RowsPerPage
    Dim pnm As Long = RowIndex Mod rp
    Dim pn As Long = RowIndex / rp
    If pnm > 0 Then
        pn = pn +1
    End If
    tblDataBrowserTable.CurrentPage = pn
    TableStyle.CellClicked("", RowIndex)
End Sub
 
Upvote 0
Cookies are required to use this site. You must accept them to continue using the site. Learn more…