ComponentOne True DBGrid Pro 8
OLESetData Event

 

OLESetData Event

The OLESetData event occurs when a grid control is the source component of a drag/drop operation and a target component performs the GetData method on the source's DataObject object, but the data for the specified format has not yet been loaded.

Syntax

TDBGrid_OLESetData (Data As TrueDBGrid80.DataObject, DataFormat As Integer)

Arguments

Data is a DataObject object used as a placeholder for the requested data. You can load the data with the SetData method of the DataObject.

DataFormat is an integer specifying the format of the data that the target control is requesting.

Remarks

In certain cases, it is more efficient to defer loading data into the DataObject object of a source component to save time, especially if it supports many formats. This event enables 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.

Note

Currently, the only data format recognized by the grid is text.

See Also

TDBGrid Control

 

 


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

Product Support Forum  |  Documentation Feedback