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