New to Telerik UI for WinForms? Start a free 30-day trial

Enumerates rows from a master template and recursively visits child views for hierarchy rows.

Definition

Namespace:Telerik.WinControls.UI

Assembly:Telerik.WinControls.GridView.dll

Syntax:

C#
public class PagedHierarchicalTraverser : IEnumerator

Inheritance: objectPagedHierarchicalTraverser

Implements: IEnumerator

Constructors

Initializes traversal from the master template's current data view.

C#
public PagedHierarchicalTraverser(MasterGridViewTemplate masterTemplate)
Parameters:masterTemplateMasterGridViewTemplate

The master template whose data view supplies the root rows.

Properties

Gets the row at the current traversal position.

C#
public object Current { get; }
Property Value:

The current row, or null when no row is current.

Implements: IEnumerator.Current

Methods

Rebuilds the pending-row stack so rows are visited in their data-view order.

C#
protected virtual void BuildRowStack()

Determines whether traversal should add a hierarchy row's child-view rows to the stack.

C#
protected virtual bool CanStepInHierarchy(GridViewHierarchyRowInfo hierarchyRow)
Parameters:hierarchyRowGridViewHierarchyRowInfo

The hierarchy row whose child views may be traversed.

Returns:

bool

true by default, allowing traversal into the row's child views.

Advances to the next row and adds child-view rows when CanStepInHierarchy(GridViewHierarchyRowInfo) allows traversal.

C#
public bool MoveNext()
Returns:

bool

true if a row was reached; otherwise, false when traversal is exhausted.

Implements: IEnumerator.MoveNext()

Restarts traversal from the rows currently in the master template's data view.

C#
public void Reset()

Implements: IEnumerator.Reset()