DataGridView::DataGridViewControlCollection Class
Represents a collection of controls contained on a DataGridView.
Assembly: System.Windows.Forms (in System.Windows.Forms.dll)
System.Windows.Forms.Layout::ArrangedElementCollection
System.Windows.Forms::Control::ControlCollection
System.Windows.Forms::DataGridView::DataGridViewControlCollection
| Name | Description | |
|---|---|---|
![]() | DataGridView::DataGridViewControlCollection(DataGridView^) | Initializes a new instance of the DataGridView::DataGridViewControlCollection class. |
| Name | Description | |
|---|---|---|
![]() | Count | Gets the number of elements in the collection.(Inherited from ArrangedElementCollection.) |
![]() | IsReadOnly | Gets a value indicating whether the collection is read-only.(Inherited from ArrangedElementCollection.) |
![]() | Item[Int32] | Indicates the Control at the specified indexed location in the collection.(Inherited from Control::ControlCollection.) |
![]() | Item[String^] | Indicates a Control with the specified key in the collection.(Inherited from Control::ControlCollection.) |
![]() | Owner | Gets the control that owns this Control::ControlCollection.(Inherited from Control::ControlCollection.) |
| Name | Description | |
|---|---|---|
![]() | Add(Control^) | Adds the specified control to the control collection.(Inherited from Control::ControlCollection.) |
![]() | AddRange(array<Control^>^) | Adds an array of control objects to the collection.(Inherited from Control::ControlCollection.) |
![]() | Clear() | Removes all controls from the DataGridView.(Overrides Control::ControlCollection::Clear().) |
![]() | Contains(Control^) | Determines whether the specified control is a member of the collection.(Inherited from Control::ControlCollection.) |
![]() | ContainsKey(String^) | Determines whether the Control::ControlCollection contains an item with the specified key.(Inherited from Control::ControlCollection.) |
![]() | CopyTo(Array^, Int32) | Copies the entire contents of this collection to a compatible one-dimensional Array, starting at the specified index of the target array.(Inherited from ArrangedElementCollection.) |
![]() | CopyTo(array<Control^>^, Int32) | Copies the contents of the DataGridView::DataGridViewControlCollection into a Control array, starting at the specified index of the target array. |
![]() | Equals(Object^) | Determines whether two ArrangedElementCollection instances are equal.(Inherited from ArrangedElementCollection.) |
![]() | Finalize() | Allows an object to try to free resources and perform other cleanup operations before it is reclaimed by garbage collection.(Inherited from Object.) |
![]() | Find(String^, Boolean) | Searches for controls by their Name property and builds an array of all the controls that match.(Inherited from Control::ControlCollection.) |
![]() | GetChildIndex(Control^) | Retrieves the index of the specified child control within the control collection.(Inherited from Control::ControlCollection.) |
![]() | GetChildIndex(Control^, Boolean) | Retrieves the index of the specified child control within the control collection, and optionally raises an exception if the specified control is not within the control collection.(Inherited from Control::ControlCollection.) |
![]() | GetEnumerator() | Retrieves a reference to an enumerator object that is used to iterate over a Control::ControlCollection.(Inherited from Control::ControlCollection.) |
![]() | GetHashCode() | Returns the hash code for this instance.(Inherited from ArrangedElementCollection.) |
![]() | GetType() | |
![]() | IndexOf(Control^) | Retrieves the index of the specified control in the control collection.(Inherited from Control::ControlCollection.) |
![]() | IndexOfKey(String^) | Retrieves the index of the first occurrence of the specified item within the collection.(Inherited from Control::ControlCollection.) |
![]() | Insert(Int32, Control^) | Inserts the specified Control into the DataGridView::DataGridViewControlCollection at the specified index. |
![]() | MemberwiseClone() | |
![]() | Remove(Control^) | Removes the specified control from the DataGridView::DataGridViewControlCollection.(Overrides Control::ControlCollection::Remove(Control^).) |
![]() | RemoveAt(Int32) | Removes a control from the control collection at the specified indexed location.(Inherited from Control::ControlCollection.) |
![]() | RemoveByKey(String^) | Removes the child control with the specified key.(Inherited from Control::ControlCollection.) |
![]() | SetChildIndex(Control^, Int32) | Sets the index of the specified child control in the collection to the specified index value.(Inherited from Control::ControlCollection.) |
![]() | ToString() | Returns a string that represents the current object.(Inherited from Object.) |
| Name | Description | |
|---|---|---|
![]() ![]() | IList::Add(Object^) | This API supports the product infrastructure and is not intended to be used directly from your code. For a description of this member, see IList::Add.(Inherited from Control::ControlCollection.) |
![]() ![]() | IList::Clear() | For a description of this member, see the IList::Clear method.(Inherited from ArrangedElementCollection.) |
![]() ![]() | IList::Contains(Object^) | For a description of this member, see the IList::Contains method.(Inherited from ArrangedElementCollection.) |
![]() ![]() | IList::IndexOf(Object^) | For a description of this member, see the IList::IndexOf method.(Inherited from ArrangedElementCollection.) |
![]() ![]() | IList::Insert(Int32, Object^) | For a description of this member, see the IList::Insert method.(Inherited from ArrangedElementCollection.) |
![]() ![]() | IList::Remove(Object^) | This API supports the product infrastructure and is not intended to be used directly from your code. For a description of this member, see IList::Remove.(Inherited from Control::ControlCollection.) |
![]() ![]() | IList::RemoveAt(Int32) | For a description of this member, see the IList::RemoveAt method.(Inherited from ArrangedElementCollection.) |
![]() ![]() | ICloneable::Clone() | This API supports the product infrastructure and is not intended to be used directly from your code. For a description of this member, see ICloneable::Clone.(Inherited from Control::ControlCollection.) |
![]() ![]() | ICollection::IsSynchronized | For a description of this member, see the ICollection::IsSynchronized property.(Inherited from ArrangedElementCollection.) |
![]() ![]() | ICollection::SyncRoot | For a description of this member, see the ICollection::SyncRoot property.(Inherited from ArrangedElementCollection.) |
![]() ![]() | IList::IsFixedSize | For a description of this member, see the IList::IsFixedSize property.(Inherited from ArrangedElementCollection.) |
![]() ![]() | IList::Item[Int32] | For a description of this member, see the IList::Item property.(Inherited from ArrangedElementCollection.) |
| 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.) |
The Controls property of the DataGridView control returns an instance of type Control::ControlCollection which you can cast to an instance of type DataGridView::DataGridViewControlCollection.
The DataGridView::DataGridViewControlCollection includes controls such as the editing control and the scrollbars on the DataGridView.
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.





