DataGridViewComboBoxCell::ObjectCollection::Item Property (Int32)
.NET Framework (current version)
Gets or sets the item at the current index location. In C#, this property is the indexer for the DataGridViewComboBoxCell::ObjectCollection class.
Assembly: System.Windows.Forms (in System.Windows.Forms.dll)
public: property Object^ default[ int index ] { virtual Object^ get(int index); virtual void set(int index, Object^ value); }
Parameters
- index
-
Type:
System::Int32
The zero-based index of the element to get or set.
Implements
IList::Item[Int32]| Exception | Condition |
|---|---|
| ArgumentOutOfRangeException | index is less than 0 or greater than the number of items in the collection minus one. |
| ArgumentNullException | The specified value when setting this property is null. |
| ArgumentException | When setting this property, the cell's DataSource property value is not null. |
| InvalidOperationException | When setting this property, the cell is in a shared row. |
.NET Framework
Available since 2.0
Available since 2.0
Show: