SMART datagrid v.1 > Classes > GridColumn

Back  Forward

DataLudi.GridColumn.displayIndex  property

The display order of this column within Column Group if it is the column being displayed now, that is, if visible is true

If it is not the displaying state, it will return -1. And, you can change the display location through this property, and if specify the value less than 0, visible will become false. If the specified value is greater than visibleCount of parent group, it will be adjusted to visibleCount - 1. 

Getter
function displayIndex(): Integer
Setter
function setDisplayIndex(value: Integer)
Code -1
    var col = grid.focusedColumn();
    if (col) {
        col.setDisplayIndex(col.displayIndex() + 1);
    }
See Also
visible
ColumnGroup
ColumnGroup.visibleCount
GridBase.focusedColumn
Examples
Column Visibility
Column Grouping
Column Layouts