System.Windows.Forms.BindingSource.Clear Method

Removes all elements from the list.

Syntax

public virtual void Clear ()

Remarks

The BindingSource.Clear method removes all elements from the underlying list represented by the BindingSource.List property and sets the BindingSource.Count property to zero.

This method raises the BindingSource.ListChanged event.

Requirements

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