combit List & Label 29 - .NET Help
combit.Reporting.DataProviders Namespace / ITableRow Interface / GetChildTable Method
The relation to the child table.
Example


In This Topic
    GetChildTable Method
    In This Topic
    This method is called whenever a sub table is needed. This happens if the user chose to insert a relationally linked table to the current table e.g. the orders of a customer. In this case, the method will be called on the customer table with the relation linking to the orders table.
    Syntax
    'Declaration
     
    
    Function GetChildTable( _
       ByVal relation As ITableRelation _
    ) As ITable
    ITable GetChildTable( 
       ITableRelation relation
    )
    ITable^ GetChildTable( 
       ITableRelation^ relation
    ) 

    Parameters

    relation
    The relation to the child table.
    Example
    public ITable GetChildTable(ITableRelation relation)
    {
        DataView childView = _dataRowView.CreateChildView(relation.RelationName);
        return new DataViewWrapper(childView);
    }
    Public Function GetChildTable(relation As ITableRelation) As ITable
        Dim childView As DataView = _dataRowView.CreateChildView(relation.RelationName)
        Return New DataViewWrapper(childView)
    End Function
    Requirements

    Platforms: Windows 10 (Version 21H2 - 23H2), Windows 11 (21H2 - 22H2), Windows Server 2016 - 2022
    .NET: .NET Framework 4.8, .NET 6, .NET 7, .NET 8

    See Also