Group excel cells in POI and having the first row as "main"
<p>I use POI to generate an excel sheet. When grouping rows using </p>

<pre><code>        curSheet.groupRow(firstRow, lastRow)
</code></pre>

<p>I noticed that the main Row that stays before collapsing is the last row of the grouping (the row with number lastRow). </p>

<p>How can I change it to first row? </p>