DataGridViewCellCollection.IList.Remove(Object) DataGridViewCellCollection.IList.Remove(Object) DataGridViewCellCollection.IList.Remove(Object) Method

Definition

Removes the first occurrence of a specific object from the collection.

 virtual void System.Collections.IList.Remove(System::Object ^ value) = System::Collections::IList::Remove;
void IList.Remove (object value);
Sub Remove (value As Object) Implements IList.Remove

Parameters

value
Object Object Object

The DataGridViewCell to remove from the collection.

Implements

Exceptions

cell could not be found in the collection.

Remarks

Once you add the row to a control, the number of cells it contains always matches the number of columns in the control, so this method is no longer useful.

This member is an explicit interface member implementation. It can be used only when the DataGridViewCellCollection instance is cast to an IList interface.

Applies to

See also