# DataTableInfo.ChildTables Property

> Gets a DataTableInfoCollection representing the child-tables this table has. (Either according to the known data relations or, in case of an assembly or an object as a data source, to the properties of the involved classes)

- **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.ChildTables Property
- **412 words**
- **Web URL:** https://docs.textcontrol.com/tx-text-control-dotnet-wpf/reference/txtextcontrol-documentserver-datasources/datatableinfo/childtables-property/
- **LLMs URL:** https://docs.textcontrol.com/tx-text-control-dotnet-wpf/reference/txtextcontrol-documentserver-datasources/datatableinfo/childtables-property/llms.txt
- **LLMs-Full URL:** https://docs.textcontrol.com/tx-text-control-dotnet-wpf/reference/txtextcontrol-documentserver-datasources/datatableinfo/childtables-property/llms-full.txt

---

### Description

Gets a [DataTableInfoCollection](https://docs.textcontrol.com/tx-text-control-dotnet-wpf/reference/txtextcontrol-documentserver-datasources/datatableinfocollection/llms-full.txt) representing the child-tables this table has. (Either according to the known data relations or, in case of an assembly or an object as a data source, to the properties of the involved classes)

### Syntax

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

```vbnet
Public ReadOnly Property ChildTables As DataTableInfoCollection
```

### Examples

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

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

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

### Limitations

Read only.

---

## Nearby

- **Previous:** [DataTableInfo.ChildRelations Property](https://docs.textcontrol.com/tx-text-control-dotnet-wpf/reference/txtextcontrol-documentserver-datasources/datatableinfo/childrelations-property/llms-full.txt)
- **Next:** [DataTableInfo.Columns Property](https://docs.textcontrol.com/tx-text-control-dotnet-wpf/reference/txtextcontrol-documentserver-datasources/datatableinfo/columns-property/llms-full.txt)
