showGridlines property

bool showGridlines
getter/setter pair

Indicates whether to print the gridlines in the worksheet.

final Workbook workbook = Workbook();
final Worksheet sheet = workbook.worksheets[0];
sheet.getRangeByName('A1:D4').text = 'GridLines';
sheet.pageSetup.showGridlines = true;
final List<int> bytes = workbook.saveAsStream();
saveAsExcel(bytes, 'showGridlines.xlsx');
workbook.dispose();

Implementation

late bool showGridlines;