Center column headers and summary line in Grid

I have a grid with 4 columns and want them aligned as follows



grid.setColAlign(“left,center,center,center”)



This works great, except that the header labels and summary/totals line don’t obey this alignment. How I can get everything to align properly?



Thanks,



Chris

To set align for the grid header’s cell you can use 3rd parameter of setHeader method:
mygrid.setHeader(“A,B,C”,null,[“text-align:right;”,“text-align:left;”,“text-align:center”]);

Thanks for that.  How about the summary line?

Thanks for that.  How about the summary line?

Never mind - I figured it out from your example:

  grid.attachFooter(“Totals,#stat_total,#stat_total,#stat_total”,[“text-align:left;”,“text-align:center;”,“text-align:center”,“text-align:center”]);


Thanks for the help and quick response!