Grid View Column Collection. IList. Clear Method
Removes all elements from the collection.
virtual void System.Collections.IList.Clear() = System::Collections::IList::Clear;
void IList.Clear ();
Sub Clear () Implements IList.Clear
The associated DataGridView control is performing one of the following actions that temporarily prevents new columns from being added:
Selecting all cells in the control.
Clearing the selection.
Updating column DisplayIndex property values.
This method is being called from a handler for one of the following DataGridView events: