# IDataTableAdapter.ColumnNames Property

> Returns the table's column names as a string array.

- **Product:** TX Text Control .NET for WPF
- **Section:** Reference
- **Kind:** Property
- **Introduced:** 23.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 > IDataTableAdapter.ColumnNames Property
- **325 words**
- **Web URL:** https://docs.textcontrol.com/tx-text-control-dotnet-wpf/reference/txtextcontrol-documentserver-datasources/idatatableadapter/columnnames-property/
- **LLMs URL:** https://docs.textcontrol.com/tx-text-control-dotnet-wpf/reference/txtextcontrol-documentserver-datasources/idatatableadapter/columnnames-property/llms.txt
- **LLMs-Full URL:** https://docs.textcontrol.com/tx-text-control-dotnet-wpf/reference/txtextcontrol-documentserver-datasources/idatatableadapter/columnnames-property/llms-full.txt

---

### Description

Returns the table's column names as a string array.

### Syntax

```csharp
string[] ColumnNames { get; }
```

```vbnet
ReadOnly Property ColumnNames As String()
```

### Examples

The following example iterates through the column names collection and processes each string.

```csharp
foreach (string text in iDataTableAdapter.ColumnNames)
{
    Console.WriteLine(text.Length);
}
```

```vbnet
For Each text As String In iDataTableAdapter.ColumnNames
    Console.WriteLine(text.Length)
Next
```

### Limitations

Read only.

---

## Nearby

- **Previous:** [IDataTableAdapter.ChildTableNames Property](https://docs.textcontrol.com/tx-text-control-dotnet-wpf/reference/txtextcontrol-documentserver-datasources/idatatableadapter/childtablenames-property/llms-full.txt)
- **Next:** [IDataTableAdapter.Rows Property](https://docs.textcontrol.com/tx-text-control-dotnet-wpf/reference/txtextcontrol-documentserver-datasources/idatatableadapter/rows-property/llms-full.txt)
