IDataSourceProvider.GetSelectedDataSource Method
.NET Framework 2.0
Gets a reference to the selected data source from the data source provider.
Namespace: System.Web.UI.Design
Assembly: System.Design (in system.design.dll)
Assembly: System.Design (in system.design.dll)
The following code example implements both the GetSelectedDataSource and GetResolvedSelectedDataSource methods of the IDataSourceProvider interface. The GetSelectedDataSource method is used to ensure that the data source associated with the control at design time is an object that implements the IEnumerable interface. This allows users to iterate through the data source.
Windows 98, Windows 2000 SP4, Windows Server 2003, Windows XP Media Center Edition, Windows XP Professional x64 Edition, Windows XP SP2, Windows XP Starter Edition
The .NET Framework does not support all versions of every platform. For a list of the supported versions, see System Requirements.
Show: