Start Building Professional
Web Apps Today


 
Categories Question details Back To List
Question  posted by Richard on Dec 08, 2009 06:58
open dhtmlx forum
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?
Answer posted by Stanislav (support) on Dec 08, 2009 10:06
Try to use

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