Spread 8.0 Documentation
OLESetData Event
Support Options
ActiveX Reference > ActiveX Events > OLESetData Event

Glossary Item Box

OLESetData Event


See Also

Applies To

fpSpread and fpSpreadPreview controls

Description

Occurs at the drag-drop source control when the drop target requests data that was not provided to the fpDataObject.

Syntax

Visual Basic

Sub fpSpread_OLESetData(Data As fpDataObject, DataFormat As Integer)

Sub fpSpreadPreview_OLESetData(Data As fpDataObject, DataFormat As Integer)

Parameter

The following parameters are available:

Parameter Description
Data fpDataObject that is requesting the data
DataFormat Format of the data the control is requesting as specified in the OLEStartDrag event

Remarks

This event is initiated when the target control requests data and the fpDataObject does not have data for that format because delayed rendering was used in the OLEStartDrag event.

The OLESetData event allows the source to provide the data using delayed rendering. The advantage of delayed rendering is that the data transfer does not actually take place until the target control requests data for a particular format by calling the GetData method of the fpDataObject.

See Also

ScriptEnhanced property

OLECompleteDrag, OLEStartDrag, OLEGiveFeedback events

OLEDrag, GetData, SetData methods

Copyright © GrapeCity, inc. All rights reserved.