ComponentOne VSFlexGrid 8.0
OLESetData Event

Fired on the source component when a target component performs the GetData method on the source’s DataObject object.

Syntax

Private Sub VSFlexGrid_OLESetData(Data As VSDataObject, DataFormat As Integer)

Remarks

In certain cases, you may wish to defer loading data into the DataObject object of a source component to save time, especially if the source component supports many formats. This event allows the source to respond to only one request for a given format of data. When this event is called, the source should check the format parameter to determine what needs to be loaded and then perform the SetData method on the DataObject object to load the data which is then passed back to the target component.

The parameters for the OLESetData event are described below:

Data As vsDataObject

An object in which to place the requested data. The component calls the SetData method to load the requested format.

DataFormat As Integer

An integer specifying the format of the data that the target component is requesting. The source component uses this value to determine what to load into the DataObject object.

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