DataGridViewColumnCollection Methods
.NET Framework 4.5
The DataGridViewColumnCollection type exposes the following members.
| Name | Description | |
|---|---|---|
|
Add(DataGridViewColumn) | Adds the given column to the collection. |
|
Add(String, String) | Adds a DataGridViewTextBoxColumn with the given column name and column header text to the collection. |
|
AddRange | Adds a range of columns to the collection. |
|
Clear | Clears the collection. |
|
Contains(DataGridViewColumn) | Determines whether the collection contains the given column. |
|
Contains(String) | Determines whether the collection contains the column referred to by the given name. |
|
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(DataGridViewColumn[], Int32) | Copies the items from the collection to the given 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.) |
|
GetColumnCount | Returns the number of columns that meet the given filter requirements. |
|
GetColumnsWidth | Returns the width, in pixels, required to display all of the columns that meet the given filter requirements. |
|
GetEnumerator | Gets the object that enables iterating through the members of the collection. (Inherited from BaseCollection.) |
|
GetFirstColumn(DataGridViewElementStates) | Returns the first column in display order that meets the given inclusion-filter requirements. |
|
GetFirstColumn(DataGridViewElementStates, DataGridViewElementStates) | Returns the first column in display order that meets the given inclusion-filter and exclusion-filter requirements. |
|
GetHashCode | Serves as a hash function for a particular type. (Inherited from Object.) |
|
GetLastColumn | Returns the last column in display order that meets the given filter requirements. |
|
GetLifetimeService | Retrieves the current lifetime service object that controls the lifetime policy for this instance. (Inherited from MarshalByRefObject.) |
|
GetNextColumn | Gets the first column after the given column in display order that meets the given filter requirements. |
|
GetPreviousColumn | Gets the last column prior to the given column in display order that meets the given filter requirements. |
|
GetType | Gets the Type of the current instance. (Inherited from Object.) |
|
IndexOf | Gets the index of the given DataGridViewColumn in the collection. |
|
InitializeLifetimeService | Obtains a lifetime service object to control the lifetime policy for this instance. (Inherited from MarshalByRefObject.) |
|
Insert | Inserts a column at the given index in the collection. |
|
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(DataGridViewColumn) | Removes the specified column from the collection. |
|
Remove(String) | Removes the column with the specified name from the collection. |
|
RemoveAt | Removes the column at the given index in the collection. |
|
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 | Infrastructure. Copies the entire contents of the collection to a compatible one-dimensional Array, starting at the specified index of the target array. |
|
IEnumerable.GetEnumerator | Infrastructure. Returns an enumerator that iterates through the collection. |
|
IList.Add | Infrastructure. Adds an object to the end of the collection. |
|
IList.Clear | Infrastructure. Removes all elements from the collection. |
|
IList.Contains | Infrastructure. Determines whether an object is in the collection. |
|
IList.IndexOf | Infrastructure. Determines the index of a specific item in the collection. |
|
IList.Insert | Infrastructure. Inserts an element into the collection at the specified index. |
|
IList.Remove | Infrastructure. Removes the first occurrence of the specified object from the collection. |
|
IList.RemoveAt | Infrastructure. Removes the element with the specified index from the collection. |