Header row in Grid

I would like to have the first row of the header for a grid span all columns and be centered. The second row of the header has the actual column headings. (The first is more like a title for the grid itself.) I can’t seem to get it to work (using setHeader and attachHeader). Is there a way to do this?

Try to use

grid.setHeader(“title,#cspan,#cspan”,null,[“text-align:center”]);
grid.attachHeader(“a,b,c”);