System.Web.UI.HierarchicalDataSourceView Class

Represents a data view on a node or collection of nodes in a hierarchical data structure for a System.Web.UI.HierarchicalDataSourceControl control.

See Also: HierarchicalDataSourceView Members


public abstract class HierarchicalDataSourceView


ASP.NET supports a data-binding architecture that enables Web server controls to bind to data and present it in a consistent fashion. Web server controls that bind to data are called data-bound controls, and the classes that facilitate that binding are called data source controls. Data source controls can represent any data source: a file, a stream, a relational database, a business object, and so on. Data source controls present data in a consistent way to data-bound controls, regardless of the source or format of the underlying data.

Data source controls that represent hierarchical data derive from the abstract System.Web.UI.HierarchicalDataSourceControl class. You can think of a data source control as the combination of the data source control object and its associated views on the underlying data, which are represented by data source view objects. Hierarchical data source controls support a hierarchical data source view for each hierarchical level of data they represent. The data source views are not named, like the System.Web.UI.DataSourceView objects associated with a System.Web.UI.DataSourceControl control, but are identified by their unique hierarchical path.

Data source views define the capabilities of a data source control. All data source view objects, including System.Web.UI.HierarchicalDataSourceView, support data retrieval from the underlying data source using the HierarchicalDataSourceView.Select method, which retrieves a hierarchical list of data as an System.Web.UI.IHierarchicalEnumerable object. All data source view objects optionally support a basic set of capabilities, including operations such as DataSourceView.Insert(IDictionary, DataSourceViewOperationCallback), DataSourceView.Update(IDictionary, IDictionary, IDictionary, DataSourceViewOperationCallback), DataSourceView.Delete(IDictionary, IDictionary, DataSourceViewOperationCallback), and sorting. A data-bound control can discover the capabilities of a data source control by retrieving an associated data source view using the HierarchicalDataSourceControl.GetHierarchicalView(string) method and querying the view at design time or at run time. System.Web.UI.HierarchicalDataSourceView does not currently support DataSourceView.Insert(IDictionary, DataSourceViewOperationCallback), DataSourceView.Update(IDictionary, IDictionary, IDictionary, DataSourceViewOperationCallback) or DataSourceView.Delete(IDictionary, IDictionary, DataSourceViewOperationCallback) operations.


Namespace: System.Web.UI
Assembly: System.Web (in System.Web.dll)
Assembly Versions:
Since: .NET 2.0