Skip to content

VisibleIndex Property

Description

Visible index of the column, does not include hidden columns.

Property Type

Read-write property

Syntax (Visual Basic)

Public Property VisibleIndex() As Long

Remarks

VisibleIndex is the index of the column visually. This is only needed if a column is expanded, and it will apply to all columns after the column that is expanded.

  • OldVisibleIndex is the old index of the column, which is only needed if a column is expanded. This will apply to all columns after the column that is expanded.
  • PlusMinus specifies whether the column has an arrow icon in the column header that can be clicked to expand the column.

When using PlusMinus, you also need to set the NextVisualBlock property. The NextVisualBlock property specifies how many columns are hidden to the right of the column with PlusMinus = True when the arrow button is pressed. When the columns are hidden, the column with PlusMinus = True will expand to the width of the hidden columns.

For example, let's say PlusMinus = True and NextVisualBlock = 3. In this case, when the expand arrow is clicked, the 3 columns to the right will be hidden, and the column with the expand arrow button will expand to the combined width of the 3 hidden columns.

This can be used to save space. You can allow column widths to be small to fully display data, but at the same time allow that data to be fully visible with the click of a button.

The Expanded state can be used to determine if the column is expanded.

See Also


Copyright (c) 1998-2024 Codejock Technologies. All rights reserved.