Is there any way to merge 4 cells (2rows x 2columns) together?
Suppose we have the following header:
grid.setHeader(“1-1,1-2,1-3,1-4”);
grid.attachHeader(“2-1,2-2,2-3,2-4”);
grid.attachHeader(“3-1,3-2,3-3,3-4”);
grid.attachHeader(“4-1,4-2,4-3,4-4”);
The question is how to merge cells 2-2,2-3,3-2,3-3 together.
I found some kind of solution, but not sure if it is proper one because this solution has a trick to balance cells quantity in the third row. I wonder if it may cause any error somewhere later in grid methods.
Here is the way I implement the task:
grid.setHeader(“1-1,1-2,1-3,1-4”);
grid.attachHeader(“2-1,2-2,#span,2-4”);
grid.attachHeader(“3-1,#rspan,3-4”);//here only 3 cells
grid.attachHeader(“4-1,4-2,4-3,4-4”);
May be it could be done other way without tricks. I’ll appreciate any comments