protected override void DataBind(BaseDataBoundControl dataBoundControl) { IHierarchicalEnumerable designTimeDataSource = this.GetDesignTimeDataSource(); string dataSourceID = dataBoundControl.DataSourceID; object dataSource = dataBoundControl.DataSource; HierarchicalDataBoundControl control = (HierarchicalDataBoundControl)dataBoundControl; control.DataSource = designTimeDataSource; control.DataSourceID = string.Empty; try { if (designTimeDataSource != null) { control.DataBind(); } } finally { control.DataSource = dataSource; control.DataSourceID = dataSourceID; } }
public HierarchicalDataBoundControlAdapter(HierarchicalDataBoundControl h) : base(h) { }
internal MyHierarchicalDataBoundControlAdapter(HierarchicalDataBoundControl c) : base(c) { }