Class
ViewInfoTraverser

Represents a traverser for the data rows.

Definition

Namespace:Telerik.WinControls.UI

Assembly:Telerik.WinControls.GridView.dll

Syntax:

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

Inheritance: objectViewInfoTraverser

Implements: IDisposableIEnumerableIEnumeratorITraverser<GridViewRowInfo>

Constructors

ViewInfoTraverser(GridViewInfo)

Initializes a new instance of the ViewInfoTraverser class.

Declaration

cs-api-definition
public ViewInfoTraverser(GridViewInfo viewInfo)

Parameters

viewInfo

GridViewInfo

The view info.

ViewInfoTraverser(ViewInfoEnumeratorPosition)

Initializes a new instance of the ViewInfoTraverser class.

Declaration

cs-api-definition
public ViewInfoTraverser(ViewInfoTraverser.ViewInfoEnumeratorPosition position)

Parameters

position

ViewInfoTraverser.ViewInfoEnumeratorPosition

The position.

ViewInfoTraverser(ViewInfoTraverser)

Initializes a new instance of the ViewInfoTraverser class.

Declaration

cs-api-definition
public ViewInfoTraverser(ViewInfoTraverser traverser)

Parameters

traverser

ViewInfoTraverser

The traverser.

Properties

Collection

Gets the collection.

Declaration

cs-api-definition
protected ITraversable Collection { get; }

Property Value

ITraversable

The collection.

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.

FilterByPinPosition

Gets or sets the filter by pin position.

Declaration

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

Property Value

bool

The filter by pin position.

FilteredPinPosition

Gets or sets the filtered pin position.

Declaration

cs-api-definition
public PinnedRowPosition FilteredPinPosition { get; set; }

Property Value

PinnedRowPosition

The filtered pin position.

Position

Gets or sets the position.

Declaration

cs-api-definition
public ViewInfoTraverser.ViewInfoEnumeratorPosition Position { get; set; }

Property Value

ViewInfoTraverser.ViewInfoEnumeratorPosition

The position.

ProcessHiddenRows

Gets or sets whether to process the hidden rows.

Declaration

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

Property Value

bool

The process hidden rows.

ViewInfo

Gets the view info.

Declaration

cs-api-definition
public GridViewInfo ViewInfo { get; }

Property Value

GridViewInfo

The view info.

Methods

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 the specific 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

IsFirstRow(GridViewRowInfo)

Determines whether the specified row is first.

Declaration

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

Parameters

row

GridViewRowInfo

The row.

Returns

bool

IsLastRow(GridViewRowInfo)

Determines whether the specified row is last.

Declaration

cs-api-definition
public bool IsLastRow(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

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

Declaration

cs-api-definition
public event RowEnumeratorEventHandler RowVisible

Event Value

RowEnumeratorEventHandler