Clear Method
Collapse the table of content
Expand the table of content

DataGridViewComboBoxCell.ObjectCollection.Clear Method ()

 

Clears all items from the collection.

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

public void Clear()

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:
© 2016 Microsoft