# TableCollection.GridLines Property

> Gets or sets a value indicating wether table grid lines are shown or not.

- **Product:** TX Text Control .NET Server
- **Section:** Reference
- **Kind:** Property
- **Namespace:** `TXTextControl`
- **Package:** `TXTextControl.TextControl.Core.SDK` (assembly `TXTextControl.Core.dll`, from the private NuGet feed or Text Control Offline Packages)
- **Package:** `TXTextControl.TextControl.ASP.SDK` (assembly `TXTextControl.dll`, from the private NuGet feed or Text Control Offline Packages)
- **.NET Framework:** reference `TXTextControl.dll` from the setup
- **Path:** TX Text Control .NET Server > Reference > TXTextControl > TableCollection.GridLines Property
- **522 words**
- **Web URL:** https://docs.textcontrol.com/tx-text-control-dotnet-server/reference/txtextcontrol/tablecollection/gridlines-property/
- **LLMs URL:** https://docs.textcontrol.com/tx-text-control-dotnet-server/reference/txtextcontrol/tablecollection/gridlines-property/llms.txt
- **LLMs-Full URL:** https://docs.textcontrol.com/tx-text-control-dotnet-server/reference/txtextcontrol/tablecollection/gridlines-property/llms-full.txt

---

### Description

Gets or sets a value indicating wether table grid lines are shown or not.

### Syntax

```csharp
public bool GridLines { get; set; }
```

```vbnet
Public Property GridLines As Boolean
```

### Examples

The following XAML example shows how to bind the GridLines property to a check box.

```plaintext
<CheckBox
    Content="Show table grid lines"
    IsChecked="{Binding ElementName=textControl1, Path=Tables.GridLines}" />
```

The following example works with tables in the current document by using `TableCollection.GridLines`.

```csharp
TableCollection tableCollection = textControl.Tables;
tableCollection.Add(3, 3, 10);

tableCollection.GridLines = true;
if (tableCollection.GridLines)
{
    Console.WriteLine("Table Collection: Grid Lines is enabled.");
}
```

```vbnet
Dim tableCollection As TableCollection = textControl.Tables
tableCollection.Add(3, 3, 10)

tableCollection.GridLines = True
If tableCollection.GridLines Then
    Console.WriteLine("Table Collection: Grid Lines is enabled.")
End If
```

---

## Nearby

- **Previous:** [TableCollection.GetItem Method](https://docs.textcontrol.com/tx-text-control-dotnet-server/reference/txtextcontrol/tablecollection/getitem-method/llms-full.txt)
- **Next:** [TableCollection.Remove Method](https://docs.textcontrol.com/tx-text-control-dotnet-server/reference/txtextcontrol/tablecollection/remove-method/llms-full.txt)
