ComponentOne True DBGrid Pro 8
OLECompleteDrag Event

 

Object Reference> True DBGrid Events> OLECompleteDrag Event

OLECompleteDrag Event

The OLECompleteDrag event occurs when a grid is the source component of a drag/drop operation.

Syntax

TDBGrid_OLECompleteDrag (Effect As Long)

Arguments

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:

0 - vbDropEffectNone

Drop target cannot accept the data or the drop operation was canceled.

1 - vbDropEffectCopy

Drop results in a copy of data from the source to the target. The original data is unaltered by the drag operation.

2 - vbDropEffectMove

Drop results in a link to the original data being created between drag source and drop target.

Remarks

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.

See Also

TDBGrid Control

 

 


Copyright (c) GrapeCity, inc. All rights reserved.

Product Support Forum  |  Documentation Feedback