Object Reference > True DBGrid Events > DragCell Event |
DragCell Event
The DragCell event is triggered when the user presses the left mouse button and starts dragging the mouse.
TDBGrid_DragCell (ByVal SplitIndex As Integer, RowBookmark As Variant, ByVal ColIndex As Integer)
Arguments
SplitIndex is an integer that identifies the split containing the cell being dragged.
RowBookmark is a variant that identifies the row containing the cell being dragged.
ColIndex is an integer that identifies the column containing the cell being dragged.
This event is used to notify your application when the user wants to begin a drag-and-drop operation. Using the SplitIndex, RowBookmark, and Col arguments, you can determine the exact location of the mouse pointer at the start of the drag-and-drop operation.
You can initiate dragging in this event automatically by invoking the grid's Drag method.