I created an Excel sheet, using ExcelPackage. I gave some cells a different color, for clearing up the sheet.
Problem:
The default grid gets removed as in picture below:
First Column has the default grid overlay, the other ones don't have this grid. I tried re-enabling that grid and tried using the following code:
worksheet.Cells[row, col].Style.Border.BorderAround(ExcelBorderStyle.None);
Above code gave me same as picture.
worksheet.Cells[row, col].Style.Border.BorderAround(ExcelBorderStyle.Thin);
Above code gave me a thicker line than the default.
worksheet.Cells[row, col].Style.Border.BorderAround(ExcelBorderStyle.Medium);
Above code gave me a even thicker line than the default.
worksheet.Cells[row, col].Style.Border.BorderAround(ExcelBorderStyle.Hair);
Above code gave me a dotted line.
Question:
Can someone help me with this, where can I find the correct syntax, since the community on ExcelPackage
isn't that big and I can't find it on their CodePlex page.