SMART datagrid v.1 > Classes > ColumnGroup

Back  Forward

DataLudi.ColumnGroup.add  method

Add new Column and return index of the added column. If parameter column is null, or if it has already been included as child, or if it is ancestor group of this column group, it will not be added and will return -1. 

function add (column: GridColumn): Integer;
Returns
Integer - The index of added column.
Parameters
column - GridColumn. required.
Code -1
    var col = new DataLudi.DataColumn({
        name: 'col01',
        fieldName: 'fld01',
        renderer: 'bar'
    });
    group.add(col);
See Also
remove
clear
GridColumn
Examples
Column Grouping