Gets or sets the classic XLS colour index used for displayed worksheet gridlines. Read/write Integer.
Syntax
property GridlineColorIndex: Integer;
Description
The value is saved in the worksheet Window2 icvHdr field. The default value is 64, which tells Excel to use the default window foreground colour. When a custom index is saved, HotXLS clears the Window2 fDefaultHdr flag so Excel uses the stored colour. This property controls only the displayed gridline colour; use DisplayGridLines to show or hide gridlines and PageSetup.PrintGridlines to control printed gridlines.
Example
This example sets the displayed gridline colour index in the first sheet.
Workbook.Sheets[1].GridlineColorIndex := 23;