DataGridViewComboBoxCell::ObjectCollection::IList::Add Method (Object^)
.NET Framework (current version)
Adds an object to the collection.
Assembly: System.Windows.Forms (in System.Windows.Forms.dll)
Parameters
- item
-
Type:
System::Object^
The object to add to the collection.
Implements
IList::Add(Object^)| Exception | Condition |
|---|---|
| ArgumentNullException | item is null. |
| ArgumentException | The cell's DataSource property value is not null. |
| InvalidOperationException | The cell is in a shared row. |
This member is an explicit interface member implementation. It can be used only when the DataGridViewComboBoxCell::ObjectCollection instance is cast to an IList interface.
.NET Framework
Available since 2.0
Available since 2.0
Show: