When overridden in a derived class, binds data from the data source to the control.
Assembly: System.Web (in System.Web.dll)
Implement this method instead of the DataBind method when you derive a data-bound control from the HierarchicalDataBoundControl class. Placing your control's data-binding logic in keeps the DataBinding and DataBound events from being raised in the wrong order.
While the base HierarchicalDataBoundControl class provides no specific implementation for this method, the method is called by the PerformSelect method to bind the values of any user interface controls to the data that is retrieved by the PerformSelect method.
The following code example demonstrates how to implement the method in a class derived from HierarchicalDataBoundControl. The GeneologyTree control iterates through the IHierarchicalEnumerable and IHierarchyData objects retrieved from its associated HierarchicalDataSourceView, and creates a text tree structure for the data it is bound to. This code example is part of a larger example provided for the HierarchicalDataBoundControl class.