method Columns.Clear ()

Removes all objects in a collection.

TypeDescription

Use the Remove method when you need to remove only a column. Use the Clear method when you need to clear the entire columns collection. When the Clear method is called, the control removes automatically all items too. To remove all items call RemoveAllItems property of the Items object. The RemoveColumn event is fired when the user removes a column.