SMART datagrid v.1 > Classes > ColumnGroup

Back  Forward

DataLudi.ColumnGroup.setVisibleIndex  method

If Column specified by parameter column is being included in this column group and displayIndex of column is different from parameter newIndex, it will change the display location of column as 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