SMART datagrid v.1 > Classes > ColumnGroup

Back  Forward

DataLudi.ColumnGroup.columnByTag  method

Return the first Column which has the same tag property value as parameter tag. If not exist, it will return null. 

function columnByTag (tag: String): GridColumn;
Returns
GridColumn
Parameters
tag - String. required.
Code -1
    var group = grid.focusedIndex().group();
    if (group) {
        var col = group.columnByTag('tag');
        col && col.styles().setBackground('#33ff0000');
    }    
See Also
GridColumn.tag
Examples
Column Grouping