DataGridViewCellCollection Class
Represents a collection of cells in a DataGridViewRow.
Assembly: System.Windows.Forms (in System.Windows.Forms.dll)
System::MarshalByRefObject
System.Windows.Forms::BaseCollection
System.Windows.Forms::DataGridViewCellCollection
| Name | Description | |
|---|---|---|
![]() | DataGridViewCellCollection(DataGridViewRow^) | 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(DataGridViewCell^) | Adds a cell to the collection. |
![]() | AddRange(array<DataGridViewCell^>^) | Adds an array of cells to the collection. |
![]() | Clear() | Clears all cells from the collection. |
![]() | Contains(DataGridViewCell^) | 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(Type^) | 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 the default hash function. (Inherited from Object.) |
![]() | GetLifetimeService() | Retrieves the current lifetime service object that controls the lifetime policy for this instance.(Inherited from MarshalByRefObject.) |
![]() | GetType() | |
![]() | IndexOf(DataGridViewCell^) | 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(Int32, DataGridViewCell^) | Inserts a cell into the collection at the specified index. |
![]() | MemberwiseClone() | |
![]() | MemberwiseClone(Boolean) | Creates a shallow copy of the current MarshalByRefObject object.(Inherited from MarshalByRefObject.) |
![]() | OnCollectionChanged(CollectionChangeEventArgs^) | Raises the CollectionChanged event. |
![]() | Remove(DataGridViewCell^) | Removes the specified cell from the collection. |
![]() | RemoveAt(Int32) | Removes the cell at the specified index. |
![]() | ToString() | Returns a string that represents the current object.(Inherited from Object.) |
| Name | Description | |
|---|---|---|
![]() | CollectionChanged | Occurs when the collection is changed. |
| Name | Description | |
|---|---|---|
![]() ![]() | ICollection::CopyTo(Array^, Int32) | Copies the elements of the collection to the specified array, starting at the specified index. |
![]() ![]() | IEnumerable::GetEnumerator() | This API supports the product infrastructure and is not intended to be used directly from your code. Returns an enumerator that iterates through a collection. |
![]() ![]() | IList::Add(Object^) | This API supports the product infrastructure and is not intended to be used directly from your code. Adds an item to the collection. |
![]() ![]() | IList::Clear() | This API supports the product infrastructure and is not intended to be used directly from your code. Clears the collection. |
![]() ![]() | IList::Contains(Object^) | Determines whether the collection contains the specified value. |
![]() ![]() | IList::IndexOf(Object^) | This API supports the product infrastructure and is not intended to be used directly from your code. Determines the index of a specific item in a collection. |
![]() ![]() | IList::Insert(Int32, Object^) | This API supports the product infrastructure and is not intended to be used directly from your code. Inserts an item into the collection at the specified position. |
![]() ![]() | IList::Remove(Object^) | This API supports the product infrastructure and is not intended to be used directly from your code. Removes the first occurrence of a specific object from the collection. |
![]() ![]() | IList::RemoveAt(Int32) | This API supports the product infrastructure and is not intended to be used directly from your code. Removes the DataGridViewCell at the specified index. |
![]() ![]() | ICollection::Count | Gets the number of elements contained in the collection. |
![]() ![]() | ICollection::IsSynchronized | This API supports the product infrastructure and is not intended to be used directly from your code. Gets a value indicating whether access to the collection is synchronized (thread safe). |
![]() ![]() | ICollection::SyncRoot | This API supports the product infrastructure and is not intended to be used directly from your code. Gets an object that can be used to synchronize access to the collection. |
![]() ![]() | IList::IsFixedSize | This API supports the product infrastructure and is not intended to be used directly from your code. Gets a value indicating whether the collection has a fixed size. |
![]() ![]() | IList::IsReadOnly | This API supports the product infrastructure and is not intended to be used directly from your code. Gets a value indicating whether the collection has a fixed size. |
![]() ![]() | IList::Item[Int32] | This API supports the product infrastructure and is not intended to be used directly from your code. Gets or sets the element at the specified index. |
| Name | Description | |
|---|---|---|
![]() | AsParallel() | Overloaded. Enables parallelization of a query.(Defined by ParallelEnumerable.) |
![]() | AsQueryable() | Overloaded. 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.) |
DataGridViewCellCollection objects are retrieved by the DataGridViewRow::Cells property.
Available since 2.0
Any public static ( Shared in Visual Basic) members of this type are thread safe. Any instance members are not guaranteed to be thread safe.







