Subgrid with no Header

Hello,



I need to create Subgrid WITHOUT the Header - but everything i tryed seems not to work.



I create my Grids (and the Subgrids) - with XML Definition



If i remove the Definitions - the grid doesn�t load



Then i tryed this:



grid.attachEvent(“onSubGridCreated”,function(sub,id,ind,value){

sub.detachHeader(0);





But - the subgrid header still appers.



What i�am doing wrong? Any solution to hide the subgrid Headers?



To create grid or sub grid whith no headers you have to define it’s structure (number of columns) and then use method:
grid.attachEvent(“onSubGridCreated”,function(sub,id,ind,value){
sub.setNoHeader(true)
})