SMART datagrid v.1 > Classes > ColumnGroup

Back  Forward

DataLudi.ColumnGroup.remove  method

如果通过参数column而指定的对象被包含为这个组的子列,就会从组中清除列并返回true。 否则,就会返回false。 

function remove (column: GridColumn): Boolean;
Returns
Boolean
Parameters
column - GridColumn. required.
将会删除的列对象。
Code -1
    var col = grid.focusedIndex().column();
    if (col && col.group()) {
        col.group().remove(col);
    }
See Also
add
removeAt
clear
Examples
列分组