Object Reference > True DBGrid Events > OLECompleteDrag Event |
The OLECompleteDrag event occurs when a grid is the source component of a drag/drop operation.
TDBGrid_OLECompleteDrag (Effect As Long)
Effect is a long integer set by the source object identifying the action that has been performed, thus allowing the source to take appropriate action if the component was moved (such as the source deleting data if it is moved from one component to another). The possible values of Effect are as follows:
This event informs the grid that a drag action was either performed or canceled by the target control.
The OLECompleteDrag event is the final event to be called in an OLE drag/drop operation. Based on the value returned, the source grid control can then determine the appropriate action it needs to take. For example, if the object was moved into the target (2 - vbDropEffectMove), the source grid control needs to delete the object from itself after the move.