DataGridView::DataGridViewControlCollection::Clear Method ()

 

Removes all controls from the DataGridView.

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

public:
virtual void Clear() override

Implements

IList::Clear()

The Clear method removes all controls from the DataGridView, except the scroll bars and the editing control.

.NET Framework
Available since 2.0
Return to top
Show: