Export (0) Print
Expand All
This topic has not yet been rated - Rate this topic

SPHierarchyDataView Class

Represents a data view on a node or collection of nodes in a hierarchical data structure for a HierarchicalDataSourceControl object. This class cannot be inherited.

System.Object
  System.Web.UI.HierarchicalDataSourceView
    Microsoft.SharePoint.Navigation.SPHierarchyDataView

Namespace:  Microsoft.SharePoint.Navigation
Assembly:  Microsoft.SharePoint (in Microsoft.SharePoint.dll)
Available in Sandboxed Solutions: No
[AspNetHostingPermissionAttribute(SecurityAction.InheritanceDemand, Level = AspNetHostingPermissionLevel.Minimal)]
[AspNetHostingPermissionAttribute(SecurityAction.LinkDemand, Level = AspNetHostingPermissionLevel.Minimal)]
public sealed class SPHierarchyDataView : HierarchicalDataSourceView

ASP.NET supports an 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.

A data source control can be viewed 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, hierarchical data source controls support 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 that is passed in the viewPath parameter.

Each HierarchicalDataSourceView object defines the capabilities of a data source control for the hierarchical level represented. Some, but not all, classes derived from the DataSourceView class perform operations such as insert, update, delete, and sort. Classes derived from HierarchicalDataSourceView objects are usually read-only.

Any public static (Shared in Visual Basic) members of this type are thread safe. Any instance members are not guaranteed to be thread safe.
Did you find this helpful?
(1500 characters remaining)
Thank you for your feedback

Community Additions

ADD
Show:
© 2014 Microsoft. All rights reserved.