DataGridViewColumnCollection::Contains Method (String^)
.NET Framework (current version)
Determines whether the collection contains the column referred to by the given name.
Assembly: System.Windows.Forms (in System.Windows.Forms.dll)
Parameters
- columnName
-
Type:
System::String^
The name of the column to look for.
Return Value
Type: System::Booleantrue if the column is contained in the collection; otherwise, false.
| Exception | Condition |
|---|---|
| ArgumentNullException | columnName is null. |
The name of a column is indicated by the DataGridViewColumn::Name property.
.NET Framework
Available since 2.0
Available since 2.0
Show: