Grid View Column Collection. IList. Clear Method
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Removes all elements from the collection.
virtual void System.Collections.IList.Clear() = System::Collections::IList::Clear;
void IList.Clear ();
abstract member System.Collections.IList.Clear : unit -> unit override this.System.Collections.IList.Clear : unit -> unit
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: