Object Reference > True DBGrid Properties > OLEDropMode Property |
This property returns or sets a value that indicates how the grid handles drop operations.
TDBGrid.OLEDropMode= value
Values
Design Time |
Run Time |
0 - None (default) |
dbgOLEDropNone |
1 - Manual |
dbgOLEDropManual |
2 - Automatic |
dbgOLEDropAutomatic |
Read/Write at run time and design time.
When OLEDropMode is set to the default value of 0 - None, the grid does not accept OLE drops and displays the No Drop cursor.
When OLEDropMode is set to 1 - Manual, the grid triggers the OLE drop events, allowing the programmer to handle the OLE drop operation in code.
When OLEDropMode is set to 2 - Automatic, the grid automatically accepts OLE drops if the DataObject contains data in a format it recognizes. No mouse or OLE drag/drop events on the grid will occur when OLEDropMode is set to 2 - Automatic.
Note
Currently, the only data format recognized by the grid is text.