New to Telerik UI for WinForms? Start 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

This method is not implemented and always throws an exception.

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

The destination array; it is not used because copying is not implemented.

indexint

The destination index; it is not used because copying is not implemented.

Exceptions: Exception

Always thrown because this method is not implemented.

Implements: ICollection.CopyTo(Array, int)

Returns an enumerator that iterates through the collection

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

IEnumerator<GridViewCellInfo>