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

A collection of GridViewCellInfo objects

Definition

Namespace:Telerik.WinControls.UI

Assembly:Telerik.WinControls.GridView.dll

Syntax:

C#
public class GridViewCellInfoCollection : ICollection, IEnumerable

Inheritance: objectGridViewCellInfoCollection

Implements: ICollectionIEnumerable

Constructors

Initializes a new instance of the GridViewCellInfoCollection class.

C#
public GridViewCellInfoCollection(GridViewRowInfo rowInfo)
Parameters:rowInfoGridViewRowInfo

The associated GridViewRowInfo, owner of this collection

Properties

Gets the number of elements actually contained in the collection

C#
public int Count { get; }

Implements: ICollection.Count

Gets a value indicating whether access to the collection is synchronized (thread safe).

C#
public bool IsSynchronized { get; }

Implements: ICollection.IsSynchronized

Gets an object that can be used to synchronize access to the ArrayList.

C#
public object SyncRoot { get; }

Implements: ICollection.SyncRoot

Gets the column with the specified index.

C#
public GridViewCellInfo this[int index] { get; }
Parameters:indexint

Index of the column to get

Property Value:

Instance of GridViewCellInfo if found or null

Gets the first cell with UniqueName found.

C#
public GridViewCellInfo this[string name] { get; }
Parameters:namestring

Unique name of the column to get

Property Value:

Instance of GridViewCellInfo if found or null

Methods

Copies all the elements of the current collection to the specified collection.

C#
public void CopyTo(Array array, int index)
Parameters:arrayArray

The collection that is the destination of the elements copied from the current collection.

indexint

An integer that represents the index in collection at which copying begins.

Implements: ICollection.CopyTo(Array, int)

Returns an enumerator that iterates through the collection

C#
public IEnumerator<GridViewCellInfo> GetEnumerator()
Returns:

IEnumerator<GridViewCellInfo>