Android Question B4xTable hiding Column

Discussion in 'Android Questions' started by Scantech, May 28, 2019.

  1. Scantech

    Scantech Well-Known Member Licensed User

    I have been trying to figure out how to hide a B4XTable column without any success. Does anyone know how?
     
  2. jimmyF

    jimmyF Active Member Licensed User

    Code:
    Class_Globals
    Dim timeColumn As B4XTableColumn

    Sub Initialize
    timeColumn = B4XTable1.AddColumn(
    "Time", B4XTable1.COLUMN_TYPE_TEXT)

    B4XTable1.VisibleColumns.RemoveAt(B4XTable1.VisibleColumns.IndexOf(timeColumn))
     
    Mahares and mangojack like this.
  3. mangojack

    mangojack Well-Known Member Licensed User

    jimmyF likes this.
  4. jimmyF

    jimmyF Active Member Licensed User

    I know. I happened to be working on an app in which I used that feature.
    Would've taken me longer to search for the link lol. :D

    also:

    Code:
    timeColumn.Width = 1dip
    B4XTable1.Refresh
     
    Scantech and Mahares like this.
Loading...
  1. This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
    By continuing to use this site, you are consenting to our use of cookies.
    Dismiss Notice