New to Telerik UI for WinFormsStart a free 30-day trial

Represents the rows traverser in RadGridView

Definition

Namespace:Telerik.WinControls.UI

Assembly:Telerik.WinControls.GridView.dll

Syntax:

C#
public class GridTraverser : ITraverser<GridViewRowInfo>, IDisposable, IEnumerator, IEnumerable

Inheritance: objectGridTraverser

Derived Classes: ExportGridTraverserPrintGridTraverser

Implements: IDisposableIEnumerableIEnumeratorITraverser<GridViewRowInfo>

Constructors

Initializes a new instance of the GridTraverser class.

C#
public GridTraverser(GridTraverser gridTraverser)
Parameters:gridTraverserGridTraverser

The grid traverser.

Initializes a new instance of the GridTraverser class.

C#
public GridTraverser(GridViewInfo viewInfo, GridTraverser.TraversalModes type)
Parameters:viewInfoGridViewInfo

The view info.

typeGridTraverser.TraversalModes

The type.

Initializes a new instance of the GridTraverser class.

C#
public GridTraverser(GridViewInfo viewInfo)
Parameters:viewInfoGridViewInfo

The view info.

Initializes a new instance of the GridTraverser class.

C#
public GridTraverser(IHierarchicalRow hierarchyRow)
Parameters:hierarchyRowIHierarchicalRow

The hierarchy row.

Properties

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

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

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

Gets or sets the position.

C#
public GridTraverser.GridTraverserPosition Position { get; set; }
Property Value:

The position.

Gets or sets the process hierarchy.

C#
public bool ProcessHierarchy { get; set; }
Property Value:

The process hierarchy.

Gets or sets the traversal mode.

C#
public GridTraverser.TraversalModes TraversalMode { get; set; }
Property Value:

The traversal mode.

Gets the traverser.

C#
protected ITraverser<GridViewRowInfo> Traverser { get; }
Property Value:

The traverser.

Methods

Determines whether this instance can step in hierarchy.

C#
protected virtual bool CanStepInHierarchy()
Returns:

bool

Creates the traverser.

C#
protected virtual void CreateTraverser(GridViewInfo viewInfo)
Parameters:viewInfoGridViewInfo

The view info.

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

C#
public void Dispose()

Implements: IDisposable.Dispose()

Returns an enumerator that iterates through a collection.

C#
public IEnumerator GetEnumerator()
Returns:

IEnumerator

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

Implements: IEnumerable.GetEnumerator()

Gets the row count.

C#
public int GetRowCount()
Returns:

int

Goes to row.

C#
public int GoToRow(GridViewRowInfo row)
Parameters:rowGridViewRowInfo

The row.

Returns:

int

Goes to the row at the specific index.

C#
public GridViewRowInfo GoToRowIndex(int rowIndex)
Parameters:rowIndexint

Index of the row.

Returns:

GridViewRowInfo

Determines whether the new row visible.

C#
public static bool IsNewRowVisible(GridViewNewRowInfo newRow)
Parameters:newRowGridViewNewRowInfo

The new row.

Returns:

bool

Moves the backward.

C#
public bool MoveBackward(GridViewRowInfo row)
Parameters:rowGridViewRowInfo

The row.

Returns:

bool

Moves the forward.

C#
public bool MoveForward(GridViewRowInfo row)
Parameters:rowGridViewRowInfo

The row.

Returns:

bool

Advances the enumerator to the next element of the collection.

C#
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()

Moves the previous.

C#
public bool MovePrevious()
Returns:

bool

Implements: ITraverser<GridViewRowInfo>.MovePrevious()

Moves to end.

C#
public bool MoveToEnd()
Returns:

bool

Implements: ITraverser<GridViewRowInfo>.MoveToEnd()

Called when the row is visible.

C#
protected virtual bool OnRowVisible()
Returns:

bool

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

C#
public void Reset()
Exceptions:

InvalidOperationException

The collection was modified after the enumerator was created.

Implements: IEnumerator.Reset()

Events

Occurs when the row is visible.

C#
public event RowEnumeratorEventHandler RowVisible