GetChildRows Method
- Namespace
TXTextControl.DocumentServer. DataSources
- Package
TXTextControl.asTextControl. WPF. SDK TXDocumentServer.from the private NuGet feed or Text Control Offline Packagesdll
Description
Returns the data of a child relation with a given name as an array of IDataRowAdapter instances.
Syntax
IDataRowAdapter[] GetChildRows(string childTableName);Function GetChildRows(childTableName As String) As IDataRowAdapter()Parameters
| Parameter | Description |
|---|---|
| childTableName | The name of the child table / the child relation. |
Return Value
An array of data rows if the relation with the given name exists or null.
Examples
The following example retrieves child rows from the idata row adapter.
TXTextControl.DocumentServer.DataSources.IDataRowAdapter[] results = iDataRowAdapter.GetChildRows("CustomerName");
foreach (TXTextControl.DocumentServer.DataSources.IDataRowAdapter iDataRowAdapterItem in results)
{
Console.WriteLine(iDataRowAdapterItem);
}Dim results As TXTextControl.DocumentServer.DataSources.IDataRowAdapter() = iDataRowAdapter.GetChildRows("CustomerName")
For Each iDataRowAdapterItem As TXTextControl.DocumentServer.DataSources.IDataRowAdapter In results
Console.WriteLine(iDataRowAdapterItem)
Next