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


combit.ListLabel24.DataProviders Namespace : DataProviderCollection Class
This data provider can be used to combine multiple other data providers into one datasource. Use it if you have e.g. multiple DataSet classes from where to pull data or if you would like to have a mix of XML and custom object data.
Object Model
DataProviderCollection Class
Syntax
'Declaration
 
Public NotInheritable Class DataProviderCollection 
   Implements ICanHandleUsedIdentifiers, ICanHandleUsedRelations, ICrossRelationProvider, IDataProvider 
public ref class DataProviderCollection sealed : public ICanHandleUsedIdentifiers, ICanHandleUsedRelations, ICrossRelationProvider, IDataProvider  
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()
Inheritance Hierarchy

System.Object
   combit.ListLabel24.DataProviders.DataProviderCollection

Requirements

See Also

Reference

DataProviderCollection Members
combit.ListLabel24.DataProviders Namespace