DataGridViewComboBoxCell::ObjectCollection::Clear Method ()
.NET Framework (current version)
Clears all items from the collection.
Assembly: System.Windows.Forms (in System.Windows.Forms.dll)
| Exception | Condition |
|---|---|
| ArgumentException | The collection contains at least one item and the cell's DataSource property value is not null. |
| InvalidOperationException | The collection contains at least one item and the cell is in a shared row. |
.NET Framework
Available since 2.0
Available since 2.0
Show: