SftTree/NET 2.0

Position Property, CellClass Class

Softel vdm, Inc.

Returns the display position of the column containing this cell (the column's Position property).

Syntax      CellClass Class (Softelvdm.SftTreeNET)

VB   

Public ReadOnly Property Position As Integer

C#   

public int Position { get; }

C++   

public: property int Position {
        int get();
}

Property Value

The column's zero-based display position.

Comments

The Position property returns the display position of the column containing this cell (the column's Position property).

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 reordering, the (real) column numbers used by an application may need to be translated into the actual display column number, which is the column number as it appears to the user.

The ColumnClass.Position property can be used to reorder columns under program control.


Feedback / comments / error reports for this topic
© 2007 - Softel vdm, Inc. - www.softelvdm.com