combit List & Label 25 - .NET Online Web Help
GetTable Method
Example 


combit.ListLabel25.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.
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 7 SP1 - Windows 10 Version 1909, Windows Server 2008 R2 - 2019

See Also

Reference

IDataProvider Interface
IDataProvider Members