SMART datagrid v.1 > Classes > GridColumn

Back  Forward

DataLudi.GridColumn.displayIndex  property

現在表示されているカラムなら、つまり、visibletrueなら カラムグループ内でこのカラムの表示順番をリターンする。 表示されていない状態なら-1をリターンする。 また、このプロパティーを通じて表示位置が変更できて、 0より小さい値で指定すればvisibleがfalseになる。 指定する値が親グループのvisibleCount以上なら visibleCount – 1に調整する。 

Getter
function displayIndex(): Integer
Setter
function setDisplayIndex(value: Integer)
Code -1
    var col = grid.columnByName('colAddr');
    if (col) {
        col.setDisplayIndex(col.displayIndex() + 1);
    }
See Also
visible
ColumnGroup
ColumnGroup.visibleCount