Apache POI Hiding Rows
Using Apache POI, it is possible to hide a row. To hide the row, we can call setZeroHeight() method on the instance of row. This method takes argument either true or false. If the value is true, it will hide the row and unhide the row if value is set false.
Lets see an example in which we are creating a row and hiding it by passing True literal.
Apache POI Hiding Rows Example
If we set setZeroHeight false, it does not hide the row and shows the following output.
If we set setZeroHeight True, it hides the row and shows the following output.
See, it hides first rows and sheet starts from second row.