Skip to content

Index Property

Description

Current index of the column.

Property Type

Read-write property.

Syntax (Visual Basic)

Public Property Index() As Long

Remarks

The Index of the column is the current position of the column within the GridControl's collection of columns. The Index starts at 0 and increments by 1 for each column in the GridControl. The Index value will change when the position of the column has changed (i.e., the column is dragged and dropped to another location).

If a column has been added to the "Group By Box" or is not visible, the GridControl still keeps the place of the column. This means that the column still exists in the collection of columns and can still be referenced by the ItemIndex, which does not change. When a column is moved (i.e., a column has been dragged and dropped to another location) before/after an invisible column, the index of the invisible column will be incremented/decremented.

See Also


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