DataGridViewComboBoxCell::ObjectCollection::Clear Method ()

 

Clears all items from the collection.

Namespace:   System.Windows.Forms
Assembly:  System.Windows.Forms (in System.Windows.Forms.dll)

public:
virtual void Clear() sealed

Implements

IList::Clear()

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
Return to top
Show: