M mjcoon Well-Known Member Licensed User Mar 2, 2020 #1 I am using a zero-width column in a table to contain a key field (rowid) to link table rows with sql rows. The content is of no interest to a user viewing the table. (I'm sure I did this in Basic4PPC, way back.) I am happy to find I can still use automatic column widths by resetting all the column widths after each display event. Code: Copy Dim columnWidths() As Int columnWidths = Table1.GetColumnWidths columnWidths(2) = 0 'Hide rowid Table1.SetColumnsWidths(columnWidths) But it would be simpler (?) if a column could be permanently nominated to be zero width and thus immune from the automatic width resetting. Useful to anyone else? Mike.
I am using a zero-width column in a table to contain a key field (rowid) to link table rows with sql rows. The content is of no interest to a user viewing the table. (I'm sure I did this in Basic4PPC, way back.) I am happy to find I can still use automatic column widths by resetting all the column widths after each display event. Code: Copy Dim columnWidths() As Int columnWidths = Table1.GetColumnWidths columnWidths(2) = 0 'Hide rowid Table1.SetColumnsWidths(columnWidths) But it would be simpler (?) if a column could be permanently nominated to be zero width and thus immune from the automatic width resetting. Useful to anyone else? Mike.
Erel B4X founder Staff member Licensed User Longtime User Mar 2, 2020 #2 You are making a mistake to use the old and deprecated Table class. You should either use FlexibleTable or B4XTable.
You are making a mistake to use the old and deprecated Table class. You should either use FlexibleTable or B4XTable.