DataGridViewComboBoxCell::ObjectCollection::Add Method (Object^)
.NET Framework (current version)
Adds an item to the list of items for a DataGridViewComboBoxCell.
Assembly: System.Windows.Forms (in System.Windows.Forms.dll)
Parameters
- item
-
Type:
System::Object^
An object representing the item to add to the collection.
| Exception | Condition |
|---|---|
| ArgumentNullException | item is null. |
| ArgumentException | The cell's DataSource property value is not null. |
| InvalidOperationException | The cell is in a shared row. |
.NET Framework
Available since 2.0
Available since 2.0
Show: