SMART datagrid v.1 > Classes > ColumnGroup

Back  Forward

DataLudi.ColumnGroup.setChildIndex  method

If Column specified by parameter column is being included in this column group and GridColumn.index of column is different from parameter newIndex, it will move the column to newIndex location. You can change the display location through setVisibleIndex

function setChildIndex (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().setChildIndex(col, col.index() + 1);
    }
See Also
setVisibleIndex
GridColumn.index
GridColumn.displayIndex
Examples
Column Grouping