Hide

SftTree/OCX 7.5 - ActiveX Tree Control

Display
Print

ColumnIndex Property, SftTreeColumns Object

Returns the real column number given a display position of a column.

Syntax

Get

VB.NETColIndex = object.ColumnIndex(ByVal DispColIndex As Short) As Short
VBColIndex = object.ColumnIndex(ByVal DispColIndex As Integer) As Integer
C#.NETshort ColIndex = object.get_ColumnIndex(short DispColIndex);
VC++short ColIndex = object->ColumnIndex[short DispColIndex];
short ColIndex = object->GetColumnIndex(short DispColIndex);
CHRESULT object->get_ColumnIndex(short DispColIndex, short* ColIndex);

object

A SftTreeColumns object.

DispColIndex

The display column number whose real column number is to be returned.

ColIndex

Returns the real column number given a display position of a column.

Comments

The ColumnIndex property returns the real column number given a display position of a column.

As a user reorders columns, this is completely transparent to the application. An application still references cells and columns by the "real" column number, which is the original column number that the cell or column had before columns were reordered by the user. While columns appear in a new order after dragging a column to a new position, the application references cells and columns by their real column number which never changes.

If a user reorders columns using column drag & drop, the (display) column numbers, which is the column number as it appears to the user, may need to be translated into the real column number as used by an application.

The ColumnsObj.Move method can be used to reorder columns under program control.

See Also SftTreeColumns Object | Object Hierarchy


Last Updated 08/13/2020 - (email)
© 2024 Softel vdm, Inc.