DataGridViewColumnCollection::Item Property (String^)
.NET Framework (current version)
Gets or sets the column of the given name in the collection.
Assembly: System.Windows.Forms (in System.Windows.Forms.dll)
public: property DataGridViewColumn^ default[ String^ columnName ] { DataGridViewColumn^ get(String^ columnName); }
Parameters
- columnName
-
Type:
System::String^
The name of the column to get or set.
Property Value
Type: System.Windows.Forms::DataGridViewColumn^The DataGridViewColumn identified by the columnName parameter.
| Exception | Condition |
|---|---|
| ArgumentNullException | columnName is null. |
.NET Framework
Available since 2.0
Available since 2.0
Show: