Class
GridTraverser

Represents the rows traverser in RadGridView

Definition

Namespace:Telerik.WinControls.UI

Assembly:Telerik.WinControls.GridView.dll

Syntax:

cs-api-definition
public class GridTraverser : ITraverser<GridViewRowInfo>, IDisposable, IEnumerator, IEnumerable

Inheritance: objectGridTraverser

Derived Classes: ExportGridTraverserPrintGridTraverser

Implements: IDisposableIEnumerableIEnumeratorITraverser<GridViewRowInfo>

Constructors

GridTraverser(GridTraverser)

Initializes a new instance of the GridTraverser class.

Declaration

cs-api-definition
public GridTraverser(GridTraverser gridTraverser)

Parameters

gridTraverser

GridTraverser

The grid traverser.

GridTraverser(GridViewInfo)

Initializes a new instance of the GridTraverser class.

Declaration

cs-api-definition
public GridTraverser(GridViewInfo viewInfo)

Parameters

viewInfo

GridViewInfo

The view info.

GridTraverser(GridViewInfo, TraversalModes)

Initializes a new instance of the GridTraverser class.

Declaration

cs-api-definition
public GridTraverser(GridViewInfo viewInfo, GridTraverser.TraversalModes type)

Parameters

viewInfo

GridViewInfo

The view info.

type

GridTraverser.TraversalModes

The type.

GridTraverser(IHierarchicalRow)

Initializes a new instance of the GridTraverser class.

Declaration

cs-api-definition
public GridTraverser(IHierarchicalRow hierarchyRow)

Parameters

hierarchyRow

IHierarchicalRow

The hierarchy row.

Properties

Current

Gets the element in the collection at the current position of the enumerator.

Declaration

cs-api-definition
public GridViewRowInfo Current { get; }

Property Value

GridViewRowInfo

The element in the collection at the current position of the enumerator.

Position

Gets or sets the position.

Declaration

cs-api-definition
public GridTraverser.GridTraverserPosition Position { get; set; }

Property Value

GridTraverser.GridTraverserPosition

The position.

ProcessHierarchy

Gets or sets the process hierarchy.

Declaration

cs-api-definition
public bool ProcessHierarchy { get; set; }

Property Value

bool

The process hierarchy.

TraversalMode

Gets or sets the traversal mode.

Declaration

cs-api-definition
public GridTraverser.TraversalModes TraversalMode { get; set; }

Property Value

GridTraverser.TraversalModes

The traversal mode.

Traverser

Gets the traverser.

Declaration

cs-api-definition
protected ITraverser<GridViewRowInfo> Traverser { get; }

Property Value

ITraverser<GridViewRowInfo>

The traverser.

Methods

CanStepInHierarchy()

Determines whether this instance can step in hierarchy.

Declaration

cs-api-definition
protected virtual bool CanStepInHierarchy()

Returns

bool

CreateTraverser(GridViewInfo)

Creates the traverser.

Declaration

cs-api-definition
protected virtual void CreateTraverser(GridViewInfo viewInfo)

Parameters

viewInfo

GridViewInfo

The view info.

Dispose()

Performs application-defined tasks associated with freeing, releasing, or resetting unmanaged resources.

Declaration

cs-api-definition
public void Dispose()

Implements IDisposable.Dispose()

GetEnumerator()

Returns an enumerator that iterates through a collection.

Declaration

cs-api-definition
public IEnumerator GetEnumerator()

Returns

IEnumerator

An IEnumerator object that can be used to iterate through the collection.

Implements IEnumerable.GetEnumerator()

GetRowCount()

Gets the row count.

Declaration

cs-api-definition
public int GetRowCount()

Returns

int

GoToRow(GridViewRowInfo)

Goes to row.

Declaration

cs-api-definition
public int GoToRow(GridViewRowInfo row)

Parameters

row

GridViewRowInfo

The row.

Returns

int

GoToRowIndex(int)

Goes to the row at the specific index.

Declaration

cs-api-definition
public GridViewRowInfo GoToRowIndex(int rowIndex)

Parameters

rowIndex

int

Index of the row.

Returns

GridViewRowInfo

IsNewRowVisible(GridViewNewRowInfo)

Determines whether the new row visible.

Declaration

cs-api-definition
public static bool IsNewRowVisible(GridViewNewRowInfo newRow)

Parameters

newRow

GridViewNewRowInfo

The new row.

Returns

bool

MoveBackward(GridViewRowInfo)

Moves the backward.

Declaration

cs-api-definition
public bool MoveBackward(GridViewRowInfo row)

Parameters

row

GridViewRowInfo

The row.

Returns

bool

MoveForward(GridViewRowInfo)

Moves the forward.

Declaration

cs-api-definition
public bool MoveForward(GridViewRowInfo row)

Parameters

row

GridViewRowInfo

The row.

Returns

bool

MoveNext()

Advances the enumerator to the next element of the collection.

Declaration

cs-api-definition
public bool MoveNext()

Returns

bool

true if the enumerator was successfully advanced to the next element; false if the enumerator has passed the end of the collection.

Exceptions

InvalidOperationException

The collection was modified after the enumerator was created.

Implements IEnumerator.MoveNext()

MovePrevious()

Moves the previous.

Declaration

cs-api-definition
public bool MovePrevious()

Returns

bool

Implements ITraverser<GridViewRowInfo>.MovePrevious()

MoveToEnd()

Moves to end.

Declaration

cs-api-definition
public bool MoveToEnd()

Returns

bool

Implements ITraverser<GridViewRowInfo>.MoveToEnd()

OnRowVisible()

Called when the row is visible.

Declaration

cs-api-definition
protected virtual bool OnRowVisible()

Returns

bool

Reset()

Sets the enumerator to its initial position, which is before the first element in the collection.

Declaration

cs-api-definition
public void Reset()

Exceptions

InvalidOperationException

The collection was modified after the enumerator was created.

Implements IEnumerator.Reset()

Events

RowVisible

Occurs when the row is visible.

Declaration

cs-api-definition
public event RowEnumeratorEventHandler RowVisible

Event Value

RowEnumeratorEventHandler