asp.net.ph

HierarchicalDataSourceControl Class

System.Web.UI Namespace


.NET Framework version 2.0

Provides a base class for data source controls that represent hierarchical data.

HierarchicalDataSourceControl Class Members

Collapse   Properties

Visibility Name Value Type Accessibility
public ClientID String [ Get ]
public ClientIDMode ClientIDMode [ Get , Set ]
public Controls ControlCollection [ Get ]
public EnableTheming Boolean [ Get , Set ]
public SkinID String [ Get , Set ]
public Visible Boolean [ Get , Set ]

Collapse   Methods

Visibility Name Parameters Return Type
public ApplyStyleSheetSkin ( Page page ) Void
protected CreateControlCollection ( ) ControlCollection
public FindControl ( String id ) Control
public Focus ( ) Void
protected GetHierarchicalView ( String viewPath ) HierarchicalDataSourceView
public HasControls ( ) Boolean
protected OnDataSourceChanged ( EventArgs e ) Void
public RenderControl ( HtmlTextWriter writer ) Void

Remarks

ASP.NET supports a controls 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 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 HierarchicalDataSourceControl class, while data source controls that represent lists or tables of data derive from the DataSourceControl class. The HierarchicalDataSourceControl class is the base implementation of the IHierarchicalDataSource interface, which defines a single method to retrieve hierarchical data source view objects associated with the data source control, GetHierarchicalView.

You can think of a data source control as the combination of the HierarchicalDataSourceControl object and its associated views on the underlying data, called data source view objects. While data source controls that represent tabular data are typically associated with only one named view, the HierarchicalDataSourceControl class supports a data source view for each level of hierarchical data that the data source control represents. The level of hierarchical data is identified by a unique hierarchical path, passed to the GetHierarchicalView method in the viewPath parameter. Each HierarchicalDataSourceView object defines the capabilities of a data source control for the hierarchical level represented, and performs operations such as insert, update, delete, and sort.

Web server controls that derive from the HierarchicalDataBoundControl class, such as TreeView, use hierarchical data source controls to bind to hierarchical data.

Data source controls are implemented as controls to enable declarative persistence and to optionally permit participation in state management. Data source controls have no visual rendering, and therefore do not support themes.

See Also

SiteMapDataSource Class   XmlDataSource Class Skip Navigation Links




Home
Suggested Reading


Previous page Back to top Next page

© 2000-2010 Rey Nuñez All rights reserved.

If you have any question, comment or suggestion
about this site, please send us a note

You can help support asp.net.ph