SMART datagrid v.1 > Classes > ColumnGroup

Back  Forward

DataLudi.ColumnGroup.setVisibleIndex  method

パラメーターcolumnで指定されたカラムがこのグループに含まれてあり、 columndisplayIndexがパラメーターnewIndexと違うと、 カラムの表示位置をnewIndexに変更させる。 

function setVisibleIndex (column: GridColumn, newIndex: Integer);
Returns
Void
Parameters
column - GridColumn. required.
newIndex - Integer. required.
Code -1
    var col = grid.focusedIndex().columm();
    if (col && col.group()) {
        col.group().setVisibleIndex(col, col.displayIndex() + 1);
    }
See Also
setChildIndex
GridColumn.displayIndex
GridColumn.index
Examples
Column Grouping