Object Reference > True DBGrid Methods > Clear Method (DataObject) |
Clear Method (DataObject)
This method deletes the contents of a DataObject object.
dataobject.Clear
Arguments
None
Return Value
None
The TDBGrid control supplies an argument of type DataObject when it fires the following events: OLEDragDrop, OLEDragOver, OLESetData, and OLEStartDrag.
Note
This method is available only when the grid is the source component of a drag/drop operation (that is, within the OLESetData and OLEStartDrag events). A trappable error will occur if you attempt to call it in any other context.