This API supports the .NET Framework infrastructure and is not intended to be used directly from your code.
Adds an object to the end of the collection.
Assembly: System.Windows.Forms (in System.Windows.Forms.dll)
value is not a DataGridViewColumn.
value is null.
The associated DataGridView control is performing one of the following actions that temporarily prevents new columns from being added:
This method is being called from a handler for one of the following DataGridView events:
The column indicated by value already belongs to a DataGridView control.
The SortMode property value of the column indicated by value is Automatic and the DataGridView.SelectionMode property value is FullColumnSelect or ColumnHeaderSelect. Use the control ISupportInitialize.BeginInit and ISupportInitialize.EndInit methods to temporarily set conflicting property values.
Windows 8.1, Windows Server 2012 R2, Windows 8, Windows Server 2012, Windows 7, Windows Vista SP2, Windows Server 2008 (Server Core Role not supported), Windows Server 2008 R2 (Server Core Role supported with SP1 or later; Itanium not supported)