This documentation is archived and is not being maintained.
DataGridViewCellCollection Class
Visual Studio 2010
Represents a collection of cells in a DataGridViewRow.
System::Object
System::MarshalByRefObject
System.Windows.Forms::BaseCollection
System.Windows.Forms::DataGridViewCellCollection
System::MarshalByRefObject
System.Windows.Forms::BaseCollection
System.Windows.Forms::DataGridViewCellCollection
Assembly: System.Windows.Forms (in System.Windows.Forms.dll)
The DataGridViewCellCollection type exposes the following members.
| Name | Description | |
|---|---|---|
![]() | DataGridViewCellCollection | Initializes a new instance of the DataGridViewCellCollection class. |
| Name | Description | |
|---|---|---|
![]() | Count | Gets the total number of elements in the collection. (Inherited from BaseCollection.) |
![]() | IsReadOnly | Gets a value indicating whether the collection is read-only. (Inherited from BaseCollection.) |
![]() | IsSynchronized | Gets a value indicating whether access to the ICollection is synchronized. (Inherited from BaseCollection.) |
![]() | Item[Int32] | Gets or sets the cell at the provided index location. In C#, this property is the indexer for the DataGridViewCellCollection class. |
![]() | Item[String] | Gets or sets the cell in the column with the provided name. In C#, this property is the indexer for the DataGridViewCellCollection class. |
![]() | List | Gets an ArrayList containing DataGridViewCellCollection objects. (Overrides BaseCollection::List.) |
![]() | SyncRoot | Gets an object that can be used to synchronize access to the BaseCollection. (Inherited from BaseCollection.) |
| Name | Description | |
|---|---|---|
![]() | Add | Adds a cell to the collection. |
![]() | AddRange | Adds an array of cells to the collection. |
![]() | Clear | Clears all cells from the collection. |
![]() | Contains | Determines whether the specified cell is contained in the collection. |
![]() | CopyTo(Array, Int32) | Copies all the elements of the current one-dimensional Array to the specified one-dimensional Array starting at the specified destination Array index. (Inherited from BaseCollection.) |
![]() | CopyTo(array<DataGridViewCell>, Int32) | Copies the entire collection of cells into an array at a specified location within the array. |
![]() | CreateObjRef | Creates an object that contains all the relevant information required to generate a proxy used to communicate with a remote object. (Inherited from MarshalByRefObject.) |
![]() | Equals(Object) | Determines whether the specified Object is equal to the current Object. (Inherited from Object.) |
![]() | Finalize | Allows an object to try to free resources and perform other cleanup operations before it is reclaimed by garbage collection. (Inherited from Object.) |
![]() | GetEnumerator | Gets the object that enables iterating through the members of the collection. (Inherited from BaseCollection.) |
![]() | GetHashCode | Serves as a hash function for a particular type. (Inherited from Object.) |
![]() | GetLifetimeService | Retrieves the current lifetime service object that controls the lifetime policy for this instance. (Inherited from MarshalByRefObject.) |
![]() | GetType | Gets the Type of the current instance. (Inherited from Object.) |
![]() | IndexOf | Returns the index of the specified cell. |
![]() | InitializeLifetimeService | Obtains a lifetime service object to control the lifetime policy for this instance. (Inherited from MarshalByRefObject.) |
![]() | Insert | Inserts a cell into the collection at the specified index. |
![]() | MemberwiseClone() | Creates a shallow copy of the current Object. (Inherited from Object.) |
![]() | MemberwiseClone(Boolean) | Creates a shallow copy of the current MarshalByRefObject object. (Inherited from MarshalByRefObject.) |
![]() | OnCollectionChanged | Raises the CollectionChanged event. |
![]() | Remove | Removes the specified cell from the collection. |
![]() | RemoveAt | Removes the cell at the specified index. |
![]() | ToString | Returns a string that represents the current object. (Inherited from Object.) |
| Name | Description | |
|---|---|---|
![]() | AsParallel | Enables parallelization of a query. (Defined by ParallelEnumerable.) |
![]() | AsQueryable | Converts an IEnumerable to an IQueryable. (Defined by Queryable.) |
![]() | Cast<TResult> | Casts the elements of an IEnumerable to the specified type. (Defined by Enumerable.) |
![]() | OfType<TResult> | Filters the elements of an IEnumerable based on a specified type. (Defined by Enumerable.) |
| Name | Description | |
|---|---|---|
![]() ![]() | ICollection::CopyTo | Copies the elements of the collection to the specified array, starting at the specified index. |
![]() ![]() | ICollection::Count | Gets the number of elements contained in the collection. |
![]() ![]() | ICollection::IsSynchronized | Infrastructure. Gets a value indicating whether access to the collection is synchronized (thread safe). |
![]() ![]() | ICollection::SyncRoot | Infrastructure. Gets an object that can be used to synchronize access to the collection. |
![]() ![]() | IEnumerable::GetEnumerator | Infrastructure. Returns an enumerator that iterates through a collection. |
![]() ![]() | IList::Add | Infrastructure. Adds an item to the collection. |
![]() ![]() | IList::Clear | Infrastructure. Clears the collection. |
![]() ![]() | IList::Contains | Determines whether the collection contains the specified value. |
![]() ![]() | IList::IndexOf | Infrastructure. Determines the index of a specific item in a collection. |
![]() ![]() | IList::Insert | Infrastructure. Inserts an item into the collection at the specified position. |
![]() ![]() | IList::IsFixedSize | Infrastructure. Gets a value indicating whether the collection has a fixed size. |
![]() ![]() | IList::IsReadOnly | Infrastructure. Gets a value indicating whether the collection has a fixed size. |
![]() ![]() | IList::Item | Infrastructure. Gets or sets the element at the specified index. |
![]() ![]() | IList::Remove | Infrastructure. Removes the first occurrence of a specific object from the collection. |
![]() ![]() | IList::RemoveAt | Infrastructure. Removes the DataGridViewCell at the specified index. |
DataGridViewCellCollection objects are retrieved by the DataGridViewRow::Cells property.
Windows 7, Windows Vista SP1 or later, Windows XP SP3, Windows XP SP2 x64 Edition, Windows Server 2008 (Server Core not supported), Windows Server 2008 R2 (Server Core supported with SP1 or later), Windows Server 2003 SP2
The .NET Framework does not support all versions of every platform. For a list of the supported versions, see .NET Framework System Requirements.
Show:

