SMART datagrid v.1 > Classes > GridColumn

Back  Forward

DataLudi.GridColumn.visible  property

If it is false, the cells of this column will not be displayed and will not take up the area of grid. 

And, displayIndex will return -1. 

Defaults to true.

Getter
function visible(): Boolean
Setter
function setVisible(value: Boolean)
Code -1
    $('#toggle').click(function () {
        var col = grid.columnByName('colAddr');
        col.setVisible(!col.visible());
    });
See Also
displayIndex
index
parent
group
Examples
Column Visibility
Column Grouping