DataGridViewComboBoxCell.ObjectCollection.Remove Method (Object)

 

Removes the specified object from the collection.

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

public void Remove(
	object value
)

Parameters

value
Type: System.Object

An object representing the item to remove from the collection.

Exception Condition
ArgumentException

The cell's DataSource property value is not null.

InvalidOperationException

The cell is in a shared row.

If the value parameter is not in the collection, this method does nothing.

.NET Framework
Available since 2.0
Return to top
Show: