[Overview][Constants][Types][Classes][Procedures and functions][Variables][Index] | Reference for unit 'Grids' (#lcl)

# TCustomGrid.DoCopyToClipboard

Performs actions needed to copy a cell or a text selection to the clipboard.

## Declaration

Source position: grids.pas line 1025

`protected procedure TCustomGrid.DoCopyToClipboard; virtual;`

## Description

DoCopyToClipboard is a virtual method in TCustomGrid, and has an empty implementation. It is overridden in descendent classes, like TCustomStringGrid, to perform the actions required for the class type.

DoCopyToClipboard is called from the KeyDown method when the Ctrl+C or Meta+C (macOS, iOS, Darwin) key is handled for the control.

## See also

TCustomGrid.KeyDown |  | Handles key down events for the grid control.
TCustomGrid.DoCutToClipboard |  | Performs actions needed to cut a cell or a text selection to the clipboard.
TCustomGrid.DoPasteFromClipboard |  | Pastes data from the clipboard into the grid control.
TCustomStringGrid.DoCopyToClipboard |  | Performs actions needed to copy a cell or a text selection to the clipboard.