XL.Sheet.SetDisplayGridlines
----------------------------

Sets gridlines for displaying.

| Component | Version | macOS | Windows | Linux | Server | iOS SDK |
|---|---|---|---|---|---|---|
| [XL](component_XL.md) | [3.5](newinversion35.md) | ✅ Yes | ✅ Yes | ✅ Yes | ✅ Yes | ✅ Yes |

MBS( "XL.Sheet.SetDisplayGridlines"; BookRef; SheetIndex; Value ) 

**MBS**( **"XL.Sheet.SetDisplayGridlines"** /\* Sets gridlines for displaying. \*/  
**$BookRef**; /\* The reference number for the workbook. e.g. $ref \*/   
**$SheetIndex**; /\* The index of the sheet. This number ranges from 0 to [XL.Book.SheetCount](XLBookSheetCount.md)-1. e.g. 0 \*/   
**$Value**) /\* The new setting. Pass 1 to have gridlines visible or 0 to hide gridlines. e.g. 1 \*/ 

### Parameters

| Parameter | Description | Example |
|---|---|---|
| BookRef | The reference number for the workbook. | $ref |
| SheetIndex | The index of the sheet. This number ranges from 0 to [XL.Book.SheetCount](XLBookSheetCount.md)-1. | 0 |
| Value | The new setting. Pass 1 to have gridlines visible or 0 to hide gridlines. | 1 |

### Result

Returns OK or error message.

### Description

Sets gridlines for displaying.  
### See also

- [XL.Book.SheetCount](XLBookSheetCount.md)
- [XL.Sheet.GetDisplayGridlines](XLSheetGetDisplayGridlines.md)
- [XL.Sheet.SetPrintGridlines](XLSheetSetPrintGridlines.md)

### Example Databases

- [XL/Writing data](https://www.mbsplugins.eu/MBS-FileMaker-Plugin-Examples/XL/Writing%20data.shtml#5ScriptAnchor_)
- [XL/XL Import and Export](https://www.mbsplugins.eu/MBS-FileMaker-Plugin-Examples/XL/XL%20Import%20and%20Export.shtml#4ScriptAnchor_)

This function checks for a license.

Created 18th August 2014 , last changed 18th August 2014

  
[XL.Sheet.SetDefaultRowHeight](XLSheetSetDefaultRowHeight.md) - [XL.Sheet.SetFooter](XLSheetSetFooter.md)

[HTML Version](XLSheetSetDisplayGridlines.shtml)