/// <include file='doc\RepeaterDesigner.uex' path='docs/doc[@for="RepeaterDesigner.GetSelectedDataSource"]/*' />
        /// <devdoc>
        ///   Retrieves the selected datasource component from the component's container.
        /// </devdoc>
        public object GetSelectedDataSource()
        {
            object selectedDataSource = null;

            DataBinding binding = DataBindings["DataSource"];

            if (binding != null)
            {
                selectedDataSource = DesignTimeData.GetSelectedDataSource(repeater, binding.Expression);
            }

            return(selectedDataSource);
        }
        /// <include file='doc\RepeaterDesigner.uex' path='docs/doc[@for="RepeaterDesigner.GetResolvedSelectedDataSource"]/*' />
        /// <devdoc>
        /// </devdoc>
        public IEnumerable GetResolvedSelectedDataSource()
        {
            IEnumerable selectedDataSource = null;

            DataBinding binding = DataBindings["DataSource"];

            if (binding != null)
            {
                selectedDataSource = DesignTimeData.GetSelectedDataSource(repeater, binding.Expression, DataMember);
            }

            return(selectedDataSource);
        }
        /// <summary>
        ///    <para>
        ///       Gets the selected data source component from the component's container.
        ///    </para>
        /// </summary>
        /// <returns>
        ///    <para>
        ///       An IEnumerable with the
        ///       selected data source, or <see langword='null'/> if a data source is not found, or if a data
        ///       source with the same name does not exist.
        ///    </para>
        /// </returns>
        /// <seealso cref='System.Web.UI.Design.IDataSourceProvider'/>
        public Object GetSelectedDataSource()
        {
            Object selectedDataSource = null;

            DataBinding binding = DataBindings[_dataSourcePropertyName];

            if (binding != null)
            {
                selectedDataSource =
                    DesignTimeData.GetSelectedDataSource(_selectionList, binding.Expression);
            }

            return(selectedDataSource);
        }