SMART datagrid v.1 > Classes > GridBase

Back  Forward

DataLudi.GridBase.columnCount  property

The number of top columns being set in the grid. 

Getter
function columnCount(): Integer

You can know the number of top columns being displayed through visibleColumnCount

Code -1
    for (var i = 0, cnt = grid.columnCount(); i < cnt; i++) {
        var col = grid.getColumn(i);
        col && col.setWidth(col.width() + 10));
    }
See Also
getColumn
visibleColumnCount
getVisibleColumn
GridColumn
ColumnGroup
Examples
Hello Grid