# DataSourceManager.DataTables Property

> Gets a DataTableInfoCollection of DataTableInfo objects which represent the data tables in the data source.

- **Product:** TX Text Control .NET for Windows Forms
- **Section:** Reference
- **Kind:** Property
- **Introduced:** 24.0
- **Namespace:** `TXTextControl.DocumentServer.DataSources`
- **Package:** `TXTextControl.TextControl.WinForms.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 Windows Forms > Reference > TXTextControl.DocumentServer.DataSources > DataSourceManager.DataTables Property
- **410 words**
- **Web URL:** https://docs.textcontrol.com/tx-text-control-dotnet-winforms/reference/txtextcontrol-documentserver-datasources/datasourcemanager/datatables-property/
- **LLMs URL:** https://docs.textcontrol.com/tx-text-control-dotnet-winforms/reference/txtextcontrol-documentserver-datasources/datasourcemanager/datatables-property/llms.txt
- **LLMs-Full URL:** https://docs.textcontrol.com/tx-text-control-dotnet-winforms/reference/txtextcontrol-documentserver-datasources/datasourcemanager/datatables-property/llms-full.txt

---

### Description

Gets a [DataTableInfoCollection](https://docs.textcontrol.com/tx-text-control-dotnet-winforms/reference/txtextcontrol-documentserver-datasources/datatableinfocollection/llms-full.txt) of [DataTableInfo](https://docs.textcontrol.com/tx-text-control-dotnet-winforms/reference/txtextcontrol-documentserver-datasources/datatableinfo/llms-full.txt) objects which represent the data tables in the data source.

### Syntax

```csharp
public DataTableInfoCollection DataTables { get; }
```

```vbnet
Public ReadOnly Property DataTables As DataTableInfoCollection
```

### Examples

The following example iterates through the data tables collection and processes each data table info.

```csharp
foreach (TXTextControl.DocumentServer.DataSources.DataTableInfo dataTableInfo in dataSourceManager.DataTables)
{
    Console.WriteLine(dataTableInfo.TableName);
}
```

```vbnet
For Each dataTableInfo As TXTextControl.DocumentServer.DataSources.DataTableInfo In dataSourceManager.DataTables
    Console.WriteLine(dataTableInfo.TableName)
Next
```

### Limitations

Read only.

---

## Nearby

- **Previous:** [DataSourceManager.DataSourceCulture Property](https://docs.textcontrol.com/tx-text-control-dotnet-winforms/reference/txtextcontrol-documentserver-datasources/datasourcemanager/datasourceculture-property/llms-full.txt)
- **Next:** [DataSourceManager.DataTablesChanged Event](https://docs.textcontrol.com/tx-text-control-dotnet-winforms/reference/txtextcontrol-documentserver-datasources/datasourcemanager/datatableschanged-event/llms-full.txt)
