Start Building Professional
Web Apps Today


 
Categories Question details Back To List
Question  posted by CHW on Oct 06, 2007 21:47
open dhtmlx forum
dhtmlXGrid hdr height= 0

About dhtmlXGrid,

I need to hide the header row.

the command: mygrid.hdr.rows[1].style.height= 0;

Don't work n the Mozilla Firefox, but it works in the IE.

some tip?

thanks,

CHW
Answer posted on Oct 09, 2007 14:51
There is no legal way, but you can bruteforce it as

var row=mygrid.hdr.rows[1].cells;

for (var i=0; i<row.length; i++)
    row[i].style.height='0px';