method Columns.Clear ()
Removes all objects in a collection.

TypeDescription
Use the Clear method to remove all columns in the control. You can use ToString / Count to update the columns collection as well. Use the Remove method when you need to remove only a column.