user3914897
user3914897

Reputation: 115

Group excel cells in POI and having the first row as "main"

I use POI to generate an excel sheet. When grouping rows using

        curSheet.groupRow(firstRow, lastRow)

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

How can I change it to first row?

Upvotes: 2

Views: 5137

Answers (1)

user3914897
user3914897

Reputation: 115

Figured it out.

      curSheet.setRowSumsBelow(false) 

Upvotes: 3

Related Questions