System.Web.UI.WebControls.SiteMapHierarchicalDataSourceView Class

Represents a data view on a site map node or collection of nodes for a System.Web.UI.WebControls.SiteMapDataSource control.

See Also: SiteMapHierarchicalDataSourceView Members

Syntax

public class SiteMapHierarchicalDataSourceView : System.Web.UI.HierarchicalDataSourceView

Remarks

The System.Web.UI.WebControls.SiteMapDataSource control can present its underlying data in both tabular and hierarchical format to Web server controls that bind to it. The System.Web.UI.WebControls.SiteMapHierarchicalDataSourceView is used by controls developers, but not page developers or in page code.

Controls such as System.Web.UI.WebControls.Menu or System.Web.UI.WebControls.DropDownList use the System.Web.UI.WebControls.SiteMapDataSource to bind to site map data and present it in list form, while controls that derive from the System.Web.UI.WebControls.HierarchicalDataBoundControl class, such as System.Web.UI.WebControls.TreeView, bind to sitemap data and present it in hierarchical form.

If a data-bound control calls the System.Web.UI.IDataSource.GetView(string) method of the System.Web.UI.WebControls.SiteMapDataSource, a System.Web.UI.WebControls.SiteMapDataSourceView is created by the data source. If a control calls the System.Web.UI.WebControls.HierarchicalDataBoundControl System.Web.UI.HierarchicalDataSourceControl.GetHierarchicalView(string) method, a System.Web.UI.WebControls.SiteMapHierarchicalDataSourceView is created. The System.Web.UI.WebControls.SiteMapDataSourceView class is provided for Web server controls that derive from System.Web.UI.WebControls.DataBoundControl and bind to lists and tabular data, while the System.Web.UI.WebControls.SiteMapHierarchicalDataSourceView is provided for Web server controls that derive from System.Web.UI.WebControls.HierarchicalDataBoundControl and bind to hierarchical data.

Like all System.Web.UI.HierarchicalDataSourceView helper objects, the System.Web.UI.WebControls.SiteMapHierarchicalDataSourceView defines the operations that the data source can perform with the underlying data. Because the System.Web.UI.WebControls.SiteMapHierarchicalDataSourceView class only overrides the SiteMapHierarchicalDataSourceView.Select method, the associated System.Web.UI.WebControls.SiteMapDataSource control does not support sort expressions or insert, delete, or update operations.

Requirements

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