DataGridViewColumnCollection Class
Represents a collection of DataGridViewColumn objects.
Namespace: elsystem.windows.forms
Properties
Additional properties, methods, and events are described in the classes listed under Inheritance Hierarchy (see below).
Name | Type | Description | |
Count | int | Gets the number of columns in the collection. | |
Items[Indx] |
object |
Gets the DataGridViewColumn at the given index in the collection. | |
Items[ColumnName] | object | Gets the DataGridViewColumn with the specified ColumnName. |
Methods
Name | Description | |
Add(column) | Adds the specified column object to the collection. | |
Add(name) | Adds a column object with the specified string name. | |
At(Indx) | Indicates the column object at the specified Indx location within the collection. | |
At(ColumnName) | Indicates the column object with the specified ColumnName within the collection. | |
Clear | Removes all items from the collection. | |
Contains(name) | True if the specified column name exists within the collection. |