Contents - Index - Previous - Next


OnPaste event



Applies to
TProfGrid component

Declaration
property OnPaste: TProfGridPasteEvent;

Description

Occurs before a clipboard image of some grid cell is pasted from the Windows Clipboard into a cell.

The CanPaste parameter can be set to False in the event handler to prevent pasting unwelcome data from the Windows Clipboard.

The clipboard image of the cell that is about to be pasted is accessible via the ACell parameter. Thus the event handler can analyze and even modify the clipboard image of cell before paste happens.