returns the number of columns in the grid (including hidden columns)
var colNum=myTreeGrid.getColumnsNum();