This documentation is archived and is not being maintained.

ListControlDesigner.GetSelectedDataSource Method

Gets the selected data source component from the component's container.

[Visual Basic]
Public Overridable Function GetSelectedDataSource() As Object _
   Implements IDataSourceProvider.GetSelectedDataSource
public virtual object GetSelectedDataSource();
public: virtual Object* GetSelectedDataSource();
public function GetSelectedDataSource() : Object;

Return Value

The selected data source, or a null reference (Nothing in Visual Basic) if a data source is not found or if a data source with the same name does not exist.




Platforms: Windows 2000, Windows XP Professional, Windows Server 2003 family

.NET Framework Security: 

See Also

ListControlDesigner Class | ListControlDesigner Members | System.Web.UI.Design.WebControls Namespace | IDataSourceProvider