Rowspan error on ForeachRor event

Hi support.

Depending on the cell value, I do the rowspan. This code is in a forEachRow loop.

So I make the last rowspan correctly, but the loop try to get the next Row id, and display the error ‘_cellindex is null ’

How can I control this event?

for (var iCol=1; iCol < MAX_TOTAL_COLS ; iCol++){




        Upto= Number(str.substring(str.lastIndexOf(’/’) + 1 , str.length));





With your current code you set rowspans for all cells in grid, this is pretty strange usecase , which is not supported.
If you need to set rowspans just for some rows you need not use forEachRow itterator