SMART datagrid v.1 > Classes > GridBase

Back  Forward

DataLudi.GridBase.columnByTag  method

Return the first Column object which has the same tag as parameter tag

The column tag can be duplicated, and you can get all columns which have the same value as tag through columnsByTag

function columnByTag (tag: *): GridColumn;
Returns
GridColumn
Parameters
tag - *. required.
The value which will be compared with column Tag.
Code -1
    var column = grid.columnByTag('ludi');
    if (column) {
        column.toggle('visible');
    }
See Also
GridColumn.tag
columnsByTag
toggle
Examples
Column Styles