combit List & Label 29 - .NET Help
combit.Reporting.DataProviders Namespace / IDataProvider Interface / GetTable Method
The name of the table to return. The parameter tableName can also contain a table name that is not available in the data provider (e.g. in combination with the usage of a DataProviderCollection). In this case the return value of the method has to be null.
Example


In This Topic
    GetTable Method
    In This Topic
    This method is called whenever a table is queried from the data provider.
    Syntax
    'Declaration
     
    
    Function GetTable( _
       ByVal tableName As String _
    ) As ITable
    ITable GetTable( 
       string tableName
    )
    ITable^ GetTable( 
       String^ tableName
    ) 

    Parameters

    tableName
    The name of the table to return. The parameter tableName can also contain a table name that is not available in the data provider (e.g. in combination with the usage of a DataProviderCollection). In this case the return value of the method has to be null.
    Example
    ITable GetTable(string tableName)
    {
        DataView dataView = _dataViewManager.CreateDataView(_dataViewManager.DataSet.Tables[tableName]);
        // DataViewWrapper needs to implement ITable
        return new DataViewWrapper(dataView);
    }
    Function GetTable(tableName As String) As ITable
        Dim dataView As DataView = _dataViewManager.CreateDataView(_dataViewManager.DataSet.Tables(tableName))
        ' DataViewWrapper needs to implement ITable 
        Return New DataViewWrapper(dataView)
    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