ComponentOne VSFlexGrid 8.0
OLEStartDrag Event

Fired after an OLE drag operation is started (manually or automatically).

Syntax

Private Sub VSFlexGrid_OLEStartDrag(Data As VSDataObject, AllowedEffects As Long)

Remarks

This event is fired when the OleDrag method is invoked, or when the OleDragMode property is set to flexOleDragAutomatic and the user initiates an OLE drag/drop operation with the mouse.

This event specifies the data formats and drop effects that the control supports (by default, a string containing the current selection). It can also be used to insert data into the vsDataObject object.

The parameters for the OLEStartDrag event are described below:

Data As vsDataObject

An object containing formats that the source will provide. You may provide the values for this parameter in this event.

AllowedEffects As Long

A long integer containing the effects that the source component supports. The possible values are:

 

Constant

Value

Description

vbDropEffectNone

0

Drop operation was cancelled.

vbDropEffectCopy

1

Drop results in a copy from the source to the target. The original data remains.

vbDropEffectMove

2

Drop moves the data from the source to the target. The original data should be deleted.

 

For an example of implementing OLE drag and drop with the VSFlexGrid control, see the OLE Drag and Drop Demo.

 

 


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

Product Support Forum  |  Documentation Feedback