---
id: "P:cAlgo.API.ChartDisplaySettings.Grid"
kind: "property"
type: "T:cAlgo.API.ChartDisplaySettings"
url: "https://help.ctrader.com/ctrader-algo/references/Chart/ChartDisplaySettings/Grid/"
---

> Documentation index for agents: https://help.ctrader.com/ctrader-algo/llms.txt · machine index: https://help.ctrader.com/ctrader-algo/api.json

# ChartDisplaySettings.Grid

Member of [ChartDisplaySettings](https://help.ctrader.com/ctrader-algo/references/Chart/ChartDisplaySettings/index.md).

## Grid

Defines if the Grid is displayed on the chart background.

Environments: Desktop supported · CLI supported · Cloud supported.

C#:

```csharp
bool Grid {get; set;}
```

Python:

```python
chartDisplaySettings.Grid: bool
```

### Returns

`bool` — 

### Examples

C#:

```csharp
Chart.DisplaySettings.Grid = false;
Print("Chart shows the grid: {0}", Chart.DisplaySettings.Grid);
```

Python:

```python
api.Chart.DisplaySettings.Grid = False
api.Print(f"Chart shows the grid: {api.Chart.DisplaySettings.Grid}")
```

