System.Windows.Forms.DataGridViewColumnCollection Class

Represents a collection of System.Windows.Forms.DataGridViewColumn objects in a System.Windows.Forms.DataGridView control.

See Also: DataGridViewColumnCollection Members

Syntax

[System.ComponentModel.ListBindable(false)]
public class DataGridViewColumnCollection : BaseCollection, IList

Remarks

You can retrieve an instance of this class through the DataGridView.Columns property of the System.Windows.Forms.DataGridView control. The collection maintains a reference to the control through the DataGridViewColumnCollection.DataGridView property.

Requirements

Namespace: System.Windows.Forms
Assembly: System.Windows.Forms (in System.Windows.Forms.dll)
Assembly Versions: 2.0.0.0
Since: .NET 2.0