Help Center

ColIsVisibleproperty

Returns whether a given column is currently within view.

Windowspropertydoc-orphan
No implementation located. This member is documented, but the source scan found no matching declaration. It is likely declared in a header this scan does not resolve, or provided by a macro.

Syntax

PROPERTY ColIsVisible (BYVAL Index AS LONG) AS BOOLEAN

Parameters

NameDescription
IndexThe zero-based index of the column being checked.

Description

Returns a Boolean value indicating if any part of the column is visible to the user.

Remarks

The property returns True even if the column is only partially visible at the left or right edge of the scrollable area.

The value of this property changes automatically as the user interacts with the horizontal scrollbar or when the LeftCol property is changed programmatically.

Note that if a column's width is set to 0 (ColWidth(index) = 0), the property may still return True if that "hidden" index is within the current scroll range, though it occupies no visual space.

Example

' Check if the 10th column (Index 9) is visible If Not grid.ColIsVisible(9) Then

' If not visible, scroll the grid horizontally to show it
grid.LeftCol = 9

End If

Reference