PDA

View Full Version : Hide Grid Column Headers



super_drone
29 Nov 2007, 11:54 AM
Hi
Is there a way to not display Grid Column Headers? I've a grid with only one column and it doesn't make sense to display the header text since it's obvious looking at the data. But I can't find a config entry in GridPanel or GridView which can do that.
I found out the css being applied to the grid header element(a <tr>) and set it's display:


.x-grid3-hd-row {
display:none;
}

This works but I've other Grids on the same page and this hides all of their headers too :-/
Is there a way to not display Grid Headers?

Thanks

tryanDLS
29 Nov 2007, 12:59 PM
You can make that override more specific by adding the grid id.



#mygrid .x-grid3-hd-row {
display:none;
}

super_drone
30 Nov 2007, 1:52 PM
Thanks. That seems to have worked. Simple Solution :) although a show/hide_header in the GridPanel would be more intuitive.
Thanks again