System.Web.UI.WebControls.XmlHierarchicalDataSourceView.Select Method

Gets a list of the data items from the underlying data source.

Syntax

public override System.Web.UI.IHierarchicalEnumerable Select ()

Returns

An System.Web.UI.IHierarchicalEnumerable collection of data items based on the hierarchical level of the current view.

Remarks

The System.Web.UI.IHierarchicalEnumerable that is returned by System.Web.UI.HierarchicalDataSourceView.Select is an System.Xml.XmlNodeList and can be used like any IEnumerable collection. Call the IEnumerable.GetEnumerator method to get an IEnumerator and iterate through the collection of System.Xml.XmlNode nodes, or use foreach (in C#) or For Each (Visual Basic).

Requirements

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