DataGridView.DataGridViewControlCollection Class
TOC
Collapse the table of content
Expand the table of content

DataGridView.DataGridViewControlCollection Class

 

Represents a collection of controls contained on a DataGridView.

Namespace:   System.Windows.Forms
Assembly:  System.Windows.Forms (in System.Windows.Forms.dll)

System.Object
  System.Windows.Forms.Layout.ArrangedElementCollection
    System.Windows.Forms.Control.ControlCollection
      System.Windows.Forms.DataGridView.DataGridViewControlCollection

[ComVisibleAttribute(false)]
public class DataGridViewControlCollection : Control.ControlCollection

NameDescription
System_CAPS_pubmethodDataGridView.DataGridViewControlCollection(DataGridView)

Initializes a new instance of the DataGridView.DataGridViewControlCollection class.

NameDescription
System_CAPS_pubpropertyCount

Gets the number of elements in the collection.(Inherited from ArrangedElementCollection.)

System_CAPS_pubpropertyIsReadOnly

Gets a value indicating whether the collection is read-only.(Inherited from ArrangedElementCollection.)

System_CAPS_pubpropertyItem[Int32]

Indicates the Control at the specified indexed location in the collection.(Inherited from Control.ControlCollection.)

System_CAPS_pubpropertyItem[String]

Indicates a Control with the specified key in the collection.(Inherited from Control.ControlCollection.)

System_CAPS_pubpropertyOwner

Gets the control that owns this Control.ControlCollection.(Inherited from Control.ControlCollection.)

NameDescription
System_CAPS_pubmethodAdd(Control)

Adds the specified control to the control collection.(Inherited from Control.ControlCollection.)

System_CAPS_pubmethodAddRange(Control[])

Adds an array of control objects to the collection.(Inherited from Control.ControlCollection.)

System_CAPS_pubmethodClear()

Removes all controls from the DataGridView.(Overrides Control.ControlCollection.Clear().)

System_CAPS_pubmethodContains(Control)

Determines whether the specified control is a member of the collection.(Inherited from Control.ControlCollection.)

System_CAPS_pubmethodContainsKey(String)

Determines whether the Control.ControlCollection contains an item with the specified key.(Inherited from Control.ControlCollection.)

System_CAPS_pubmethodCopyTo(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.)

System_CAPS_pubmethodCopyTo(Control[], Int32)

Copies the contents of the DataGridView.DataGridViewControlCollection into a Control array, starting at the specified index of the target array.

System_CAPS_pubmethodEquals(Object)

Determines whether two ArrangedElementCollection instances are equal.(Inherited from ArrangedElementCollection.)

System_CAPS_protmethodFinalize()

Allows an object to try to free resources and perform other cleanup operations before it is reclaimed by garbage collection.(Inherited from Object.)

System_CAPS_pubmethodFind(String, Boolean)

Searches for controls by their Name property and builds an array of all the controls that match.(Inherited from Control.ControlCollection.)

System_CAPS_pubmethodGetChildIndex(Control)

Retrieves the index of the specified child control within the control collection.(Inherited from Control.ControlCollection.)

System_CAPS_pubmethodGetChildIndex(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.)

System_CAPS_pubmethodGetEnumerator()

Retrieves a reference to an enumerator object that is used to iterate over a Control.ControlCollection.(Inherited from Control.ControlCollection.)

System_CAPS_pubmethodGetHashCode()

Returns the hash code for this instance.(Inherited from ArrangedElementCollection.)

System_CAPS_pubmethodGetType()

Gets the Type of the current instance.(Inherited from Object.)

System_CAPS_pubmethodIndexOf(Control)

Retrieves the index of the specified control in the control collection.(Inherited from Control.ControlCollection.)

System_CAPS_pubmethodIndexOfKey(String)

Retrieves the index of the first occurrence of the specified item within the collection.(Inherited from Control.ControlCollection.)

System_CAPS_pubmethodInsert(Int32, Control)

Inserts the specified Control into the DataGridView.DataGridViewControlCollection at the specified index.

System_CAPS_protmethodMemberwiseClone()

Creates a shallow copy of the current Object.(Inherited from Object.)

System_CAPS_pubmethodRemove(Control)

Removes the specified control from the DataGridView.DataGridViewControlCollection.(Overrides Control.ControlCollection.Remove(Control).)

System_CAPS_pubmethodRemoveAt(Int32)

Removes a control from the control collection at the specified indexed location.(Inherited from Control.ControlCollection.)

System_CAPS_pubmethodRemoveByKey(String)

Removes the child control with the specified key.(Inherited from Control.ControlCollection.)

System_CAPS_pubmethodSetChildIndex(Control, Int32)

Sets the index of the specified child control in the collection to the specified index value.(Inherited from Control.ControlCollection.)

System_CAPS_pubmethodToString()

Returns a string that represents the current object.(Inherited from Object.)

NameDescription
System_CAPS_pubinterfaceSystem_CAPS_privmethodIList.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.)

System_CAPS_pubinterfaceSystem_CAPS_privmethodIList.Clear()

For a description of this member, see the IList.Clear method.(Inherited from ArrangedElementCollection.)

System_CAPS_pubinterfaceSystem_CAPS_privmethodIList.Contains(Object)

For a description of this member, see the IList.Contains method.(Inherited from ArrangedElementCollection.)

System_CAPS_pubinterfaceSystem_CAPS_privmethodIList.IndexOf(Object)

For a description of this member, see the IList.IndexOf method.(Inherited from ArrangedElementCollection.)

System_CAPS_pubinterfaceSystem_CAPS_privmethodIList.Insert(Int32, Object)

For a description of this member, see the IList.Insert method.(Inherited from ArrangedElementCollection.)

System_CAPS_pubinterfaceSystem_CAPS_privmethodIList.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.)

System_CAPS_pubinterfaceSystem_CAPS_privmethodIList.RemoveAt(Int32)

For a description of this member, see the IList.RemoveAt method.(Inherited from ArrangedElementCollection.)

System_CAPS_pubinterfaceSystem_CAPS_privmethodICloneable.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.)

System_CAPS_pubinterfaceSystem_CAPS_privpropertyICollection.IsSynchronized

For a description of this member, see the ICollection.IsSynchronized property.(Inherited from ArrangedElementCollection.)

System_CAPS_pubinterfaceSystem_CAPS_privpropertyICollection.SyncRoot

For a description of this member, see the ICollection.SyncRoot property.(Inherited from ArrangedElementCollection.)

System_CAPS_pubinterfaceSystem_CAPS_privpropertyIList.IsFixedSize

For a description of this member, see the IList.IsFixedSize property.(Inherited from ArrangedElementCollection.)

System_CAPS_pubinterfaceSystem_CAPS_privpropertyIList.Item[Int32]

For a description of this member, see the IList.Item property.(Inherited from ArrangedElementCollection.)

NameDescription
System_CAPS_pubmethodAsParallel()

Overloaded. Enables parallelization of a query.(Defined by ParallelEnumerable.)

System_CAPS_pubmethodAsQueryable()

Overloaded. Converts an IEnumerable to an IQueryable.(Defined by Queryable.)

System_CAPS_pubmethodCast<TResult>()

Casts the elements of an IEnumerable to the specified type.(Defined by Enumerable.)

System_CAPS_pubmethodOfType<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.

.NET Framework
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.

Return to top
Show:
© 2016 Microsoft