VSFlexGrid Control > VSFlexGrid Properties, Events, and Methods > VSFlexGrid Properties > ColHidden Property |
Returns or sets whether a column is hidden.
[form!]VSFlexGrid.ColHidden(Col As Long)[ = {True | False} ]
Use the ColHidden property to hide and display columns. This is a better approach than setting the column's ColWidth property to zero, because it allows you to display the column later with its original width.
Hidden columns are ignored by the AutoSize method.
When setting this property, the Col parameter should be set to a value between zero and Cols - 1 to hide or show a given column, or to -1 to hide or show all columns.
This example hides the second column:
fg.ColHidden(1) = True
Boolean