asp.net.ph

HierarchicalDataBoundControl Class

System.Web.UI.WebControls Namespace


.NET Framework version 2.0

Serves as the base class for all ASP.NET version 2.0 data-bound controls that display data in hierarchical form.

HierarchicalDataBoundControl Class Members

Collapse   Properties

Visibility Name Value Type Accessibility
public DataSourceID String [ Get , Set ]

Collapse   Methods

Visibility Name Parameters Return Type
protected GetData ( String viewPath ) HierarchicalDataSourceView
protected GetDataSource ( ) IHierarchicalDataSource
protected MarkAsDataBound ( ) Void
protected OnDataPropertyChanged ( ) Void
protected OnDataSourceChanged ( Object sender , EventArgs e ) Void
protected OnPagePreLoad ( Object sender , EventArgs e ) Void
protected PerformSelect ( ) Void
protected ValidateDataSource ( Object dataSource ) Void

Remarks

The HierarchicalDataBoundControl class is the base class used for ASP.NET controls that retrieve data from an ASP.NET hierarchical data source control and bind user-interface elements of the control to that data for display. The TreeView and Menu classes derive from HierarchicalDataBoundControl.

Page developers do not use the HierarchicalDataBoundControl class directly; instead, they use controls that derive from this class.

Controls developers extend this class to create data-bound controls that work with classes that implement the IHierarchicalDataSource interface and classes that derive from the HierarchicalDataSourceControl and HierarchicalDataSourceView classes.

When deriving a class from the HierarchicalDataBoundControl class, override the PerformDataBinding method to bind the user-interface elements of your control to data retrieved by the GetData method. In most cases, the PerformDataBinding method is the only method you will override in your derived class.

For ASP.NET 2.0 data-bound controls, the PerformSelect method is the equivalent of the DataBind method, and is called to bind data at run time. The PerformSelect method calls the GetData and PerformDataBinding methods.

See Also

Menu Class   TreeView 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