TX Text Control .NET for WPF

GetChildRows Method

Method|Introduced in 23.0
Namespace
TXTextControl.DocumentServer.DataSources
Package
TXTextControl.TextControl.WPF.SDK as TXDocumentServer.dll from the private NuGet feed or Text Control Offline Packages

Description

Returns the data of a child relation with a given name as an array of IDataRowAdapter instances.

Syntax

IDataRowAdapter[] GetChildRows(string childTableName);

Parameters

ParameterDescription
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);
}