combit List & Label 24 - .NET Online Web Help
DataProviderCollection Constructor
Example 


combit.ListLabel24.DataProviders Namespace > DataProviderCollection Class : DataProviderCollection Constructor
Initializes a new instance of the data provider.
Syntax
'Declaration
 
Public Function New()
public DataProviderCollection()
public:
DataProviderCollection();
Example
DataSet ds1 = CreateDataSet();
DataSet ds2 = CreateOtherDataSet();

// combine the data from ds1 and ds2 into one datasource
DataProviderCollection providerCollection = new DataProviderCollection();
providerCollection.Add(new AdoDataProvider(ds1));
providerCollection.Add(new AdoDataProvider(ds2));
LL.DataSource = providerCollection;
LL.Design();
Dim ds1 As DataSet = CreateDataSet()
Dim ds2 As DataSet = CreateOtherDataSet()

' combine the data from ds1 and ds2 into one datasource
Dim providerCollection As New DataProviderCollection()
providerCollection.Add(New AdoDataProvider(ds1))
providerCollection.Add(New AdoDataProvider(ds2))
LL.DataSource = providerCollection
LL.Design()
Requirements

Platforms: Windows Vista - Windows 10 Version 1809, Windows Server 2008 - 2016

See Also

Reference

DataProviderCollection Class
DataProviderCollection Members