Hide

SftTree/NET 2.0 - Tree Control for Windows Forms

Display
Print

Position Property, ColumnClass Class

Defines the column's zero-based display position, used to visually reorder columns.

Class: ColumnClass
Namespace: Softelvdm.SftTreeNET
Assembly: Softelvdm.SftTreeNET

Syntax

public int Position { get; set; }
Public Property Position As Integer

Value

A value that specifies the column's zero-based display position.

Comments

Defines the column's zero-based display position, used to visually reorder columns.

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

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.

See Also ColumnClass Class | Classes | SftTree/NET 2.0