Class
GridViewRowInfoEnumerator

Represents an enumerator for the grid rows.

Definition

Namespace:Telerik.WinControls.UI

Assembly:Telerik.WinControls.GridView.dll

Syntax:

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

Inheritance: objectGridViewRowInfoEnumerator

Implements: IDisposableIEnumerableIEnumeratorITraverser<GridViewRowInfo>

Constructors

GridViewRowInfoEnumerator(IHierarchicalRow)

Initializes a new instance of the GridViewRowInfoEnumerator class.

Declaration

cs-api-definition
public GridViewRowInfoEnumerator(IHierarchicalRow startPosition)

Parameters

startPosition

IHierarchicalRow

The start position.

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 object Position { get; set; }

Property Value

object

The position.

Implements ITraverser<GridViewRowInfo>.Position

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

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(GridViewRowInfo)

Called when the row is visible.

Declaration

cs-api-definition
protected virtual bool OnRowVisible(GridViewRowInfo row)

Parameters

row

GridViewRowInfo

The row.

Returns

bool

OnStepInHierarchy(GridViewRowInfo)

Called when the user steps in the hierarchy.

Declaration

cs-api-definition
protected virtual bool OnStepInHierarchy(GridViewRowInfo row)

Parameters

row

GridViewRowInfo

The row.

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

StepInHierarchy

Declaration

cs-api-definition
public event RowEnumeratorEventHandler StepInHierarchy

Event Value

RowEnumeratorEventHandler