how to hide a column in XMl itself

how to set the column hide in the grid.



I am loading XML using JSP and Struts. I am setting the Column Id and Column caption in the XML

how to hide one column in the Grid…



If suppose I set the column hide using this line



mygrid.setColumnHidden(4,true);

it show error message



‘this.hdr.rows.1._childndxes’ is null or not an object



Please suggest some solutions



Thanks and Regards

Udhaya

You can hide it from XML as


   
       <column …
       …
      
          4true
       


In case of JS command, please be sure that it will be called only after data loading
    grid.loadXML(url,function(){
       grid.setColumnHidden(4,true);
    });