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 to remove all columns in the control. The Clear method removes all items, too. Use the RemoveAllItems method to remove all items in the control.