DataGridViewComboBoxCell::ObjectCollection::Insert Method (Int32, Object^)
.NET Framework (current version)
Inserts an item into the collection at the specified index.
Assembly: System.Windows.Forms (in System.Windows.Forms.dll)
Parameters
- index
-
Type:
System::Int32
The zero-based index at which to place item within an unsorted DataGridViewComboBoxCell.
- item
-
Type:
System::Object^
An object representing the item to insert.
Implements
IList::Insert(Int32, Object^)| Exception | Condition |
|---|---|
| ArgumentNullException | item is null. |
| ArgumentOutOfRangeException | index is less than 0 or greater than the number of items in the collection. |
| 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: