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
Public property Count int Gets the number of columns in the collection.
Public property Items[Indx]

object

Gets the DataGridViewColumn at the given index in the collection.
Public property Items[ColumnName] object Gets the DataGridViewColumn with the specified ColumnName.
Methods
  Name Description
Public property Add(column) Adds the specified column object to the collection.
Public property Add(name) Adds a column object with the specified string name.
Public property At(Indx) Indicates the column object at the specified Indx location within the collection.
Public property At(ColumnName) Indicates the column object with the specified ColumnName within the collection.
Public property Clear Removes all items from the collection.
Public property Contains(name) True if the specified column name exists within the collection.
Inheritance Hierarchy

elsystem.Object

elsystem.windows.forms.Control

elsystem.windows.forms.DataGridViewColumnCollection