Wish Table class: hidden column?

mjcoon

Well-Known Member
Licensed User
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.
hide invisible column:
        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.
 
Top