combit List & Label 25 - .NET Online Web Help
Add Method (DataProviderCollection)
Example 


combit.ListLabel25.DataProviders Namespace > DataProviderCollection Class : Add Method
The provider to add.
Adds a new data provider to the collection.
Syntax
'Declaration
 
Public Sub Add( _
   ByVal item As IDataProvider _
) 
public void Add( 
   IDataProvider item
)
public:
void Add( 
   IDataProvider^ item
) 

Parameters

item
The provider to add.
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();
Requirements

Platforms: Windows 7 SP1 - Windows 10 Version 1909, Windows Server 2008 R2 - 2019

See Also

Reference

DataProviderCollection Class
DataProviderCollection Members