DataGridViewCellCollection.IList.Clear DataGridViewCellCollection.IList.Clear DataGridViewCellCollection.IList.Clear Method

Definition

Clears the collection.

 virtual void System.Collections.IList.Clear() = System::Collections::IList::Clear;
void IList.Clear ();
Sub Clear () Implements IList.Clear

Implements

Exceptions

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