SMART datagrid v.1 > Classes > GridBase

Back  Forward

DataLudi.GridBase.visibleColumnCount  property

The number of top Columns which is displayed in the current grid. 

You can know the number of all top columns which include the columns not being displayed through columnCount

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