IDataSourceProvider Interface
.NET Framework 3.0
Defines an interface that a control designer can implement to provide access to a data source.
Namespace: System.Web.UI.Design
Assembly: System.Design (in system.design.dll)
Assembly: System.Design (in system.design.dll)
A class that is able to provide a data source can implement this interface to enable access to its data source by objects that use the IDataSourceProvider interface. This interface is used by the DataFieldConverter and DataMemberConverter classes.
The following code example shows a custom class, named TemplatedListDesigner, which inherits from the TemplatedControlDesigner class and implements the IDataSourceProvider interface.
<FileName>databounddesigner.vb</FileName> <RelevantItems> <Reference>System.Web.UI.Design.ControlDesigner</Reference> <Reference>System.Web.UI.Design.TemplatedControlDesigner</Reference> <Reference>System.Web.UI.Design.IDataSourceProvider</Reference> </RelevantItems>
Community Additions
ADD
Show: