# DataTableInfo.ChildRelations Property

> Gets a DataRelationInfoCollection representing the parent-child-relationships this table has with other data tables. Is empty in case of the data source being an object, an IEnumerable or an assembly.

- **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 > DataTableInfo.ChildRelations Property
- **415 words**
- **Web URL:** https://docs.textcontrol.com/tx-text-control-dotnet-winforms/reference/txtextcontrol-documentserver-datasources/datatableinfo/childrelations-property/
- **LLMs URL:** https://docs.textcontrol.com/tx-text-control-dotnet-winforms/reference/txtextcontrol-documentserver-datasources/datatableinfo/childrelations-property/llms.txt
- **LLMs-Full URL:** https://docs.textcontrol.com/tx-text-control-dotnet-winforms/reference/txtextcontrol-documentserver-datasources/datatableinfo/childrelations-property/llms-full.txt

---

### Description

Gets a [DataRelationInfoCollection](https://docs.textcontrol.com/tx-text-control-dotnet-winforms/reference/txtextcontrol-documentserver-datasources/datarelationinfocollection/llms-full.txt) representing the parent-child-relationships this table has with other data tables. Is empty in case of the data source being an object, an IEnumerable or an assembly.

### Syntax

```csharp
public DataRelationInfoCollection ChildRelations { get; }
```

```vbnet
Public ReadOnly Property ChildRelations As DataRelationInfoCollection
```

### Examples

The following example iterates through the child relations collection and processes each data relation info.

```csharp
foreach (TXTextControl.DocumentServer.DataSources.DataRelationInfo dataRelationInfo in dataTableInfo.ChildRelations)
{
    Console.WriteLine(dataRelationInfo.RelationName);
}
```

```vbnet
For Each dataRelationInfo As TXTextControl.DocumentServer.DataSources.DataRelationInfo In dataTableInfo.ChildRelations
    Console.WriteLine(dataRelationInfo.RelationName)
Next
```

### Limitations

Read only.

---

## Nearby

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