loop through columns

Hi,



i would like to ask how to loop though columns,for rows a foreachrow() method exists…

the loop i need is to loop through columns then rows…

You can use
    for (var i=0; i<grid.getColumnsNum(); i++){
       //i  - column index;
    }