Object Reference > True DBGrid Methods > Clear Method |
Clear Method
The Clear method removes all items from a collection.
object.Clear
Arguments
None
Return Value
None
For a Columns collection associated with a TDBGrid control, TDBDropDown control, or Split object, this method removes all Column objects.
For a PrintInfos collection associated with a TDBGrid control, this method removes all PrintInfo objects, then re-creates the default PrintInfo object.
For a SelBookmarks collection associated with a TDBGrid control, this method removes all bookmarks and deselects the corresponding grid rows.
For a ValueItems collection associated with a Column object, the Clear method removes all ValueItem objects.
Column Object, Columns Collection