diff --git a/src/main/java/com/flowingcode/vaadin/addons/gridexporter/ExcelInputStreamFactory.java b/src/main/java/com/flowingcode/vaadin/addons/gridexporter/ExcelInputStreamFactory.java index c1cca59..8411d8f 100644 --- a/src/main/java/com/flowingcode/vaadin/addons/gridexporter/ExcelInputStreamFactory.java +++ b/src/main/java/com/flowingcode/vaadin/addons/gridexporter/ExcelInputStreamFactory.java @@ -82,6 +82,7 @@ public InputStream createInputStream() { exporter.setColumns( exporter.grid.getColumns().stream() .filter(this::isExportable) + .peek(col->ComponentUtil.setData(col, COLUMN_CELLSTYLE_MAP, null)) .collect(Collectors.toList())); Workbook wb = getBaseTemplateWorkbook(); Sheet sheet = wb.getSheetAt(exporter.sheetNumber);