# DataTableInfo.Columns Property

> Gets a DataColumnInfoCollection representing the columns of this data table.

- **Product:** TX Text Control .NET for WPF
- **Section:** Reference
- **Kind:** Property
- **Introduced:** 24.0
- **Namespace:** `TXTextControl.DocumentServer.DataSources`
- **Package:** `TXTextControl.TextControl.WPF.SDK` (assembly `TXDocumentServer.dll`, from the private NuGet feed or Text Control Offline Packages)
- **.NET Framework:** reference `TXDocumentServer.dll` from the setup
- **Path:** TX Text Control .NET for WPF > Reference > TXTextControl.DocumentServer.DataSources > DataTableInfo.Columns Property
- **380 words**
- **Web URL:** https://docs.textcontrol.com/tx-text-control-dotnet-wpf/reference/txtextcontrol-documentserver-datasources/datatableinfo/columns-property/
- **LLMs URL:** https://docs.textcontrol.com/tx-text-control-dotnet-wpf/reference/txtextcontrol-documentserver-datasources/datatableinfo/columns-property/llms.txt
- **LLMs-Full URL:** https://docs.textcontrol.com/tx-text-control-dotnet-wpf/reference/txtextcontrol-documentserver-datasources/datatableinfo/columns-property/llms-full.txt

---

### Description

Gets a [DataColumnInfoCollection](https://docs.textcontrol.com/tx-text-control-dotnet-wpf/reference/txtextcontrol-documentserver-datasources/datacolumninfocollection/llms-full.txt) representing the columns of this data table.

### Syntax

```csharp
public DataColumnInfoCollection Columns { get; }
```

```vbnet
Public ReadOnly Property Columns As DataColumnInfoCollection
```

### Examples

The following example iterates through the columns collection and processes each data column info.

```csharp
foreach (TXTextControl.DocumentServer.DataSources.DataColumnInfo dataColumnInfo in dataTableInfo.Columns)
{
    Console.WriteLine(dataColumnInfo.Caption);
}
```

```vbnet
For Each dataColumnInfo As TXTextControl.DocumentServer.DataSources.DataColumnInfo In dataTableInfo.Columns
    Console.WriteLine(dataColumnInfo.Caption)
Next
```

### Limitations

Read only.

---

## Nearby

- **Previous:** [DataTableInfo.ChildTables Property](https://docs.textcontrol.com/tx-text-control-dotnet-wpf/reference/txtextcontrol-documentserver-datasources/datatableinfo/childtables-property/llms-full.txt)
- **Next:** [DataTableInfo.TableName Property](https://docs.textcontrol.com/tx-text-control-dotnet-wpf/reference/txtextcontrol-documentserver-datasources/datatableinfo/tablename-property/llms-full.txt)
